Re: [AD] [ alleg-Bugs-1061019 ] rest function seems not to work on OSX

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


> Elias Pschernig wrote:
>> Attached is a patch which should fix it, according to the reporter of
>> the bug.
>
> Why not just use usleep on all Unix/Linux systems where it's available?
> I've never understood why we use select when there are better
> alternatives for this very purpose.
>

1. select() is definitely available on all Unices so we don't need to
check its availability.

2. The last time I tested it (admittedly a while ago) select() was more
accurate than usleep() on linux.

Peter





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