From bb78dc5c7b3baacb42d4ada3ec7c03dfa79c333e Mon Sep 17 00:00:00 2001 From: pmoura Date: Sat, 30 Dec 2006 11:29:30 +0000 Subject: [PATCH] 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 --- docs/yap.tex | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/yap.tex b/docs/yap.tex index a7ec111d6..df949ca2d 100644 --- a/docs/yap.tex +++ b/docs/yap.tex @@ -8803,11 +8803,12 @@ undefined, in this case with the option @code{" /c "}. @findex sleep/1 @syindex sleep/1 @cnindex sleep/1 -Block the current process for @var{Time} seconds. The number of seconds -must be a positive number, and it may an integer or a float. The Unix -implementation uses @code{usleep} if the number of seconds is below one, -and @code{sleep} if it is over a second. The WIN32 implementation uses -@code{Sleep} for both cases. +Block the current thread for @var{Time} seconds. When YAP is compiled +without multi-threading support, this predicate blocks the YAP process. +The number of seconds must be a positive number, and it may an integer +or a float. The Unix implementation uses @code{usleep} if the number of +seconds is below one, and @code{sleep} if it is over a second. The WIN32 +implementation uses @code{Sleep} for both cases. @item system @findex system/0