Re: [AD] rest and yield_timeslice

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


Hmm.. a few problems with the patch. First, I thought we were going to use nanosleep to rest in Unix? And as well, with the unix rest method, you're using clock to do timed callback. Remember, clock works with process time, not system time. You need to use gettimeofday since clock will invariably lose cycles on you.

Also, I don't think you gave enough consideration for changing rest from long to unsigned long. You only mentioned it in the last email (that I can see), and I don't think anyone's really had a proper chance to discuss it.

- Kitty Cat




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