j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
On Fri, 30 Jun 2000, David T. Lewis wrote:
On Thu, Jun 29, 2000 at 10:15:28PM +0200, Bert Freudenberg wrote:
On Thu, 29 Jun 2000, Tim Rowledge wrote:
nanosleep(&sleepTime, &reminderTime);
Excellent - do you know if it actually portable to most unices, or is it likely to be a hit and miss affair?
It's a POSIX standard function. I checked (the manpages) on Irix and SunOS. For Suns, it seems you have to link with libposix4 though ...
-- Bert
It will be somewhat hit and miss. For example, BDSI does not seem to have it.
bash-2.02$ uname BSD/OS bash-2.02$ man nanosleep man: no entry for nanosleep in the manual.
Maybe in BSD there is some other short sleep than usleep?
From SunOS man page: "Interactions between usleep() and either alarm(2)
or sleep(3C) are unspecified." Which seems bad to me.
-- Bert
squeak-dev@lists.squeakfoundation.org