Re: [AD] implementation of rest under unix

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


On Sat, 2004-12-04 at 13:41 +1100, Peter Wang wrote:
> The current implementation of _unix_rest has a few problems:
> 
> 1. select() can be woken up prematurely, and this was not compensated 
> for.  This really shows up in the SIGALRM port.[1]
> 
> 2. It assumes the resting period is less than one second.
> 
> 3. The tv_end calculation for the callback case appears to be wrong.
> 
> Patch attached.

I'm to blame for this. My version looked much simpler though :P Anyway,
this should be applied for 4.1.17.

-- 
Elias Pschernig





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