forsyth20121205-174063a80cc13 years agoHistory
29 lines · 619 B · Text
RawDownload
.TH SYS-SLEEP 2.SH NAMEsleep \- delay.SH SYNOPSIS.EXinclude "sys.m";sys := load Sys Sys->PATH; sleep:	fn(period: int): int;.EE.SH DESCRIPTION.B Sleepsuspends the current thread for.I periodmilliseconds.The actual suspension time may be a little more or less thanthe requested time.If.I periodis 0, the processgives up the CPU if another process is waiting to run, returningimmediately if not..PP.B Sleepnormally returns 0. In hosted Inferno it may return -1 to indicate thatit was not possible to sleep (eg if no more threads are available)..SH SEE ALSO.IR sys-intro (2),.IR sys-millisec (2)