There's more than one way to do things | |
PerlMonks |
Thread-safe singleton in perlby Saladino (Beadle) |
on Mar 19, 2008 at 18:48 UTC ( [id://675062]=perlquestion: print w/replies, xml ) | Need Help?? |
Saladino has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I'd like to know if it is technically possible to have a thread-safe singleton in perl 5.8.8. I mean, my problem now is that I've to share the object reference and threads::shared doesn't allow that.
I've been looking this url:
http://perlmonks.org/?node_id=237710
But at this moment it segfaults in my Debians perl 5.8.8 .
Any hints?
Back to
Seekers of Perl Wisdom
|
|