paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-users] new timer object


From: tracstarr
Subject: [paragui-users] new timer object
Date: Wed, 29 May 2002 09:10:58 -0300

wow, looks like a lot was thought of yesterday and done. i had to take off
early cuz i was way to frustrated. but anyway, i just took a look at the new
timerobject class, and it should work great.......excepr on the mac. problem
is using SDL_Addtimer......you can't. the mac doesn't support threaded
events. i've been looking into what the mac can do...grrrr. it doesn't use
preemptive threads, only coorporative, and you must also periodically
release control of one thread to the next.....within the thread....so that
won't get us anywhere if i tried to implement threads for the mac in SDL.
However, before i took off yesterday i discoverd that the mac has a 'Timer
management" system. you are able to pass it a function that can start at any
time in the future, and then tell itself to repeat if you want.

I have yet to test it, this is what i'm doing first this morning. if it
works, i will send the patch to SDL for SDL_Addtimer and the other timer
function......and they should work without requiring threaded support
compiled in SDL. then, the new pgtimerobject class should still work as is.
If this doesn't work......ha. :(
I'm a little aprensive about doing it as i don't know if deadlocks are
possible and if the OS guarentees things to release control and run these
functions....but i'll let you know.

--Keith



reply via email to

[Prev in Thread] Current Thread [Next in Thread]