RDI code busy-waiting on running target?

Dan Kegel dkegel@ixiacom.com
Thu Jul 11 19:08:00 GMT 2002


Grant Edwards wrote:

> Is usleep() portable?

http://sarien.sourceforge.net/hackersguide/intro-portability.html
claims no.

It uses a timer on some platforms, too, so I'd avoid it anyway.

You might consider using select() with no fds to sleep briefly.  That's
tradition.

- Dan



More information about the Gdb-patches mailing list