develooper Front page | perl.perl5.porters | Postings from July 2002

Re: Thread::Use - use a module inside a thread only

Thread Previous | Thread Next
Elizabeth Mattijsen
July 30, 2002 06:50
Re: Thread::Use - use a module inside a thread only
Message ID:
At 03:46 PM 7/30/02 +0200, Arthur Bergman wrote:
>>In case it's not clear - I agree that this is the correct approach.
>>It's just that it's hard to do when part of what you're trying to clone
>>is an opaque data structure supplied by a third party library that wasn't
>>expecting to be cloned.
>Some things cannot be cloned, perhaps it should just close the file for 
>the thread, or something, or share the structure between the threads but 
>protect it with a mutex?

I would just close it.  Especially with stuff such as gzip, you're never 
going to get the mutex right from a data consistency point of view...


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About