Re: [AD] yield_timeslice

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


Daniel Schlyder wrote:

Only as long as the system driver's rest function pointer isn't NULL, which it
happens to be for both the SIGALRM and pthreads timer modules for UNIX. The
following code is used if that is the case:

Which IMO would be fine if there's no way for the system in question to properly idle the program via rest. It may not be able to give up the CPU, but it's using as little of it as possible.

On another note, Unix uses select() to yield. Surely it could use select() to rest and idle as well?

- Kitty Cat




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