perl plugin: Added basic multi-threading support.
authorSebastian Harl <sh@tokkee.org>
Tue, 13 Nov 2007 22:59:25 +0000 (23:59 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 14 Nov 2007 10:37:22 +0000 (11:37 +0100)
commitc4bc5aa6fe93b7113f649869d9bf3e9fd7b12ff2
tree7fd0b7708bfe4ba7aa9a11f6223889131ab0be04
parent8897ce7778f1567e147aaa4bba3645abc47bba27
perl plugin: Added basic multi-threading support.

This patch maps each C thread, which accesses the perl plugin, to an
interpreter based Perl thread. The implementation has been inspired by Perl's
ithreads introduced in version 5.6.0 and should be compatible (as in: can be
used side-by-side) with it. You can use threads::shared to share data
structures between threads of either implementation.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
src/perl.c