This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: RDI code busy-waiting on running target?
- From: Dan Kegel <dkegel at ixiacom dot com>
- To: 'Grant Edwards ' <grante at visi dot com>, "'gdb at sources dot redhat dot com '" <gdb at sources dot redhat dot com>
- Cc: "'gdb-patches at sources dot redhat dot com '" <gdb-patches at sources dot redhat dot com>
- Date: Thu, 11 Jul 2002 17:42:08 -0700
- Subject: RE: RDI code busy-waiting on running target?
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