develooper Front page | perl.perl5.porters | Postings from August 2001

SV: Difference between usethreads, use5005threads

Thread Previous
From:
Arthur Bergman
Date:
August 27, 2001 10:14
Subject:
SV: Difference between usethreads, use5005threads
Message ID:
00be01c12f1c$b22d7d80$052aa8c0@foo

> On Wed 22 Aug 2001 09:41, "Arthur Bergman" <arthur@contiller.se> wrote:
> > 
> > > What exactly is the difference between usethreads and use5005threads?
> > > What I've been able to gather from the source is that 'usethreads' just
> > > defines things like perl_mutex, but use5005threads actually allows "use
> > > Thread" to function.
> > 
> > usethreads use5005threads becomes the define USE_THREADS
> > usethreads (MULTIPLICITY | useithreads) becomes the define USE_ITHREADS
> > 
> > both use_threads and use_ithreads define stuff like perl_mutex
> > 
> > > Is that even close?
> > > 
> > > Assuming the above is correct, I am assuming that there is performance
> > > degradation associated with usethreads, am I correct there as well?
> > 
> > with USE_THREADS yes, with USE_ITHREADS no
> > 
> > Andy has a neat comment in the source that USE_THREADS should be USE_5005THREADS, someone might want to fix this ;)
> 
> Attached.
> 

Applied, thanks!

Arthur


Thread Previous


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