Improved the documentation of the predicate sleep/1.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1752 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura 2006-12-30 11:29:30 +00:00
parent 8ddee740a4
commit bb78dc5c7b

View File

@ -8803,11 +8803,12 @@ undefined, in this case with the option @code{" /c "}.
@findex sleep/1 @findex sleep/1
@syindex sleep/1 @syindex sleep/1
@cnindex sleep/1 @cnindex sleep/1
Block the current process for @var{Time} seconds. The number of seconds Block the current thread for @var{Time} seconds. When YAP is compiled
must be a positive number, and it may an integer or a float. The Unix without multi-threading support, this predicate blocks the YAP process.
implementation uses @code{usleep} if the number of seconds is below one, The number of seconds must be a positive number, and it may an integer
and @code{sleep} if it is over a second. The WIN32 implementation uses or a float. The Unix implementation uses @code{usleep} if the number of
@code{Sleep} for both cases. seconds is below one, and @code{sleep} if it is over a second. The WIN32
implementation uses @code{Sleep} for both cases.
@item system @item system
@findex system/0 @findex system/0