perl-ithreads@perl.org

2002-09-23 Thread Martin Roos
select(undef, undef, undef, 0.05); works just nicely enough , thank you :) i'm not gonna post all the code here again just must replace the row threads->yield; with the line given above, works just fine. tu. [i wonder how i couln't find it in the manual myself] #$%>-Original Message-

perl-ithreads@perl.org

2002-09-23 Thread Arthur Bergman
On måndag, sep 23, 2002, at 12:00 Europe/Stockholm, Martin Roos wrote: > > should i lock the $clockstr before reading/writing it ? > in Java i didn't have to lock 'non-object' variables, the VM > did it for me, dunno about perl :( > No you don't need to lock, you only write to it at one place.

Re: iThread Speed.

2002-09-23 Thread Arthur Bergman
On måndag, sep 23, 2002, at 11:32 Europe/Stockholm, Ray Hilton wrote: > > At the time of creating the threads in question, no modules, except > threads has been loaded, however, modules are loaded after this. Would > it be feasible that Perl is trying to clone the modules, even if they > have n

perl-ithreads@perl.org

2002-09-23 Thread Elizabeth Mattijsen
At 01:00 PM 9/23/02 +0300, Martin Roos wrote: >ps. does anyone know a nicer way to sleep a bit , like 0.010-0.050 msec ? >the yield thing still kills the cpu dead but it at least let's some other >process make their moves, without it the program will almost hang an older >machine :( still a little

perl-ithreads@perl.org

2002-09-23 Thread Martin Roos
no-can-do with cond_wait the main loop MUST process other kind of events too like painting & mouse clicking, which shouldn't block behind my childthread . --> "A thread exited while other threads were running" type of error? this aint my error. i get a different one , seems that some mystic varia

RE: iThread Speed.

2002-09-23 Thread Elizabeth Mattijsen
At 10:32 AM 9/23/02 +0100, Ray Hilton wrote: >At the time of creating the threads in question, no modules, except >threads has been loaded, however, modules are loaded after this. Would >it be feasible that Perl is trying to clone the modules, even if they >have not been loaded yet? If you are u

RE: iThread Speed.

2002-09-23 Thread Ray Hilton
At the time of creating the threads in question, no modules, except threads has been loaded, however, modules are loaded after this. Would it be feasible that Perl is trying to clone the modules, even if they have not been loaded yet? ray -Original Message- From: Elizabeth Mattijsen [ma

Re: Yippii , got it working, my first multithreaded tk app ;-)

2002-09-23 Thread Elizabeth Mattijsen
At 12:02 PM 9/23/02 +0300, Martin Roos wrote: >TU all for suggestions, the code looks pretty much >ok now, throws a bogus error at the end but is >generally ok , :) "A thread exited while other threads were running" type of error? > threads->yield(); In my (short) experience wi

Yippii , got it working, my first multithreaded tk app ;-)

2002-09-23 Thread Martin Roos
TU all for suggestions, the code looks pretty much ok now, throws a bogus error at the end but is generally ok , :) the code looks like this now :) --- #warning #this app kills #the cpu somewhat #dead, needs a more #sensitive sleep in #mainloop #handle with car

RE: ithreads & Tk -- Any help ???

2002-09-23 Thread Martin Roos
tried the sigaction but it doesn't work in bloody M$ windows, so i can't use it :( and it also seems that liz was right, $SIG{blaa} won't do it , at least not in that example help ? -- program now # i thought that this may work # but it does not # did i make a mistake somewhere # or doesn't it