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

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

From:
Elizabeth Mattijsen
Date:
July 30, 2002 01:35
Subject:
Re: Thread::Use - use a module inside a thread only
Message ID:
4.2.0.58.20020730103128.024ff220@mickey.dijkmat.nl
At 09:36 AM 7/30/02 +0200, Rafael Garcia-Suarez wrote:
> > Looks like stashes are not shared between threads. How
> > is this related to saving memory ?

 > However, Thread::Use can also be handy for modules that do not survive
 > the cloning process, such as PerlIO::gzip and many DBI::DBD modules...

Actually, the thing about PerlIO::gzip isn't true.  You can't create 
threads with a PerlIO::gzip layer open currently.  Even if you don't need a 
PerlIO::gzip layer in the thread.  There is no problem if you only want a 
PerlIO::gzip layer inside a thread only.  So that is a different problem 
altogether.


Liz




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About