[SDL] Why not nanosleep()?

Daniel Vogel 666 at grafzahl.de
Tue Apr 4 12:28:12 PDT 2000

Loren Osborn wrote:
> at earliest convienience.  What sleep(0) or usleep(0) do in Unix/Linux I'm
> not so sure of... (May yeild... may act as NOP... haven't tried it...)

sleep(0) returns instantly on Linux (always good to have the glibc
source code floating around ;))

Daniel Vogel                           My opinions may have changed,
666 @ http://grafzahl.de               but not the fact that I am right

More information about the SDL mailing list