Weha, this is an interesting problem :-)
First of all, using "require threads;" is nearly always wrong,
not if you do:
require threads; threads->import()
;)
but it was good enough for my test case.
but what happens here is still strange, I am wondering what is actually upping the TID count.... hmmm...
What happens here is that it SEEMS like the Boot: section in threads.xs is being executed twice, which is very odd, and kind of wrong. .... I thought BOOT sections were only run once?
this probably has something to do with DynaLoader. May be because it's defined in the scope of the program? I'm talking about the xs_init thing.
Need more investigation.
My real problem is what to do with the threads' boot happening in one os thread (not-ithread), but then used in another os thread (which can't access TLS).
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
