What's the equivalent of sleep(), wait(), or pause()

Dave Dave_member at pathlink.com
Sat Jul 8 17:54:53 PDT 2006


Regan Heath wrote:
> On Sat, 08 Jul 2006 19:06:13 -0500, Dave <Dave_member at pathlink.com> wrote:
>> sleep doesn't have > 1 sec. resolution, std.c.time.msleep is not in 
>> the std. C RT lib. on Linux systems, and usleep is deprecated on 
>> Linux, so the need is there for one.
> 
> FYI; There exists a function called "nanosleep" on some unix OS's.
> 
> Regan

Yep, that's what I'd use to implement the guts of portable and signal 
consistent 's/ms/usleep' functions on Linux.



More information about the Digitalmars-d-learn mailing list