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-
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.
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
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
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
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
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
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
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
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
10 matches
Mail list logo