Re: embedding and threads.pm

2003-03-08 Thread Stas Bekman
A.Bergman wrote: On torsdag, mar 6, 2003, at 23:47 Europe/Stockholm, Stas Bekman wrote: I've explained this in a separate post: http://archive.develooper.com/[EMAIL PROTECTED]/msg00649.html The gist of the problem is, under threaded mpm Apache2/mod_perl2. Let's say there are two OS threads T1 and

Re: embedding and threads.pm

2003-03-08 Thread A . Bergman
On torsdag, mar 6, 2003, at 23:47 Europe/Stockholm, Stas Bekman wrote: I've explained this in a separate post: http://archive.develooper.com/[EMAIL PROTECTED]/msg00649.html The gist of the problem is, under threaded mpm Apache2/mod_perl2. Let's say there are two OS threads T1 and T2 (not ithreads

Re: embedding and threads.pm

2003-03-06 Thread Stas Bekman
A Bergman wrote: On torsdag, mar 6, 2003, at 02:17 Europe/Stockholm, Stas Bekman wrote: 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). Why can't they access

Re: embedding and threads.pm

2003-03-06 Thread A Bergman
On torsdag, mar 6, 2003, at 02:17 Europe/Stockholm, Stas Bekman wrote: 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). Why can't they access TLS? Arthur

Re: embedding and threads.pm

2003-03-05 Thread Stas Bekman
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.

Re: embedding and threads.pm

2003-03-05 Thread A Bergman
On lördag, mar 1, 2003, at 10:08 Europe/Stockholm, Stas Bekman wrote: while debugging the modperl problem with threads.pm and not realizing that the problem lies not in the perl_clone(), but in the fact that the app itself is threaded, I was trying to reproduce the problem with one perl interpr

embedding and threads.pm

2003-03-01 Thread Stas Bekman
while debugging the modperl problem with threads.pm and not realizing that the problem lies not in the perl_clone(), but in the fact that the app itself is threaded, I was trying to reproduce the problem with one perl interpreter and its clone as you can see in the program at the end. In the te