IMO, the perl threads sharing mechanism is flawed because
(in my short experience with it) it does not allow certain
interesting items (e.g. tied) to be shared. I hope that
if Perl 6 is ever released it will have a better threading
component.
w/r/t "figuring out itself", in looking at the code it
looks like good old Ralf had quite a time just coping with
the various Unices and Linuces.
cmac
www.animalhead.com
On Feb 17, 2009, at 6:43 AM, Perrin Harkins wrote:
On Tue, Feb 17, 2009 at 8:13 AM, André Warnier <a...@ice-sa.com> wrote:
Now, how about extending this so it would work on both Unix/Linux
*and*
Windows platforms, figuring out itself where it is and doing
whatever is
needed to use the OS mechanisms available ?
The underlying library does not support Windows:
http://www.ossp.org/pkg/lib/mm/
It was built by Ralf Engelschall to allow sharing between processes on
unix, for use in Apache HTTPD 1.x. Since Windows uses threads
instead, it doesn't need this. You should be able to use the perl
threads sharing mechanism to do the same thing.
- Perrin