[Monetdb-developers] usleep not portable

Sjoerd Mullender sjoerd at acm.org
Tue May 22 14:34:25 CEST 2007

Jennie, you introduced a call to usleep in xrpc_client.mx.  How
important is that?

The problem is, usleep is not portable.  For one, it is not a Posix call
(use nanosleep instead), and worse (in practice), it's not available on
Windows (but neither is nanosleep).  On Windows there is Sleep() which
takes milliseconds as an argument (unlike sleep which takes seconds,
usleep which takes microseconds, and nanosleep which has nanosecond

Sjoerd Mullender

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 369 bytes
Desc: OpenPGP digital signature
URL: <http://www.monetdb.org/pipermail/developers-list/attachments/20070522/03179729/attachment.sig>

More information about the developers-list mailing list