[collectd] multi-threading support in the perl plugin

Sebastian Harl sh at tokkee.org
Tue Nov 13 23:55:40 CET 2007


Hi everybody,

The following series of patches add basic multi-threading support to the perl
plugin. Basically, each C thread, which accesses the perl plugin, will be
mapped to an interpreter based Perl thread. The implementation has been
inspired by Perl' ithreads introduced in version 5.6.0 and should be
compatible (as in: can be used side-by-side) with it. You can use the
"threads::shared" module (along with the "threads" module) to share data
structures between threads of either implementation.

The perl plugin now requires libperl to be build with ithread support in order
to compile correctly. An appropriate check has been added to the configure
script.

The new code has not been tested very thoroughly yet, so testers and feedback
are mostly welcome and appreciated.

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20071113/5bc33ee2/attachment.pgp 


More information about the collectd mailing list