Re: [AD] yield_timeslice

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Daniel Schlyder wrote:

Chris:
#define yield_timeslice()  rest(0)
That won't work unless rest() is changed; it calls yield_timeslice() on some
platforms.

That would work fine since rest's behavior depends on the system driver. The al_idle function would have to be written to accomodate each system anyway, and systems that don't support idling would just yield. The only reason it wouldn't work is if the system in question has to explicitly idle the program, instead of being able to idle while resting an arbitrary amount of time. And even then it could still work.

- Kitty Cat




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/