Daniel O'Connor wrote:

> On 29-Dec-99 Ken Bolingbroke wrote:
>>  From my own experience, altho I'm not that skilled a programmer,
>>  sleep()
>>  is not thread-safe.  I believe sleep() sets a global SIGALARM, which
>>  is
>>  reset by every thread that calls it, and thus only the last one ever
>>  returns.  Replacing sleep() with nanosleep() or something else that
>>  is
>>  thread-safe should solve that problem.
> 
> Stupid question time..
> 
> If that is so why doesn't sleep just use nanosleep? :)

It does in FreeBSD. UTSL.

-- 
Ben Smithurst            | PGP: 0x99392F7D
[EMAIL PROTECTED] |   key available from keyservers and
                         |   [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to