From 1c7681b1795b9d284c6094c869a9c3e1bcc4556a Mon Sep 17 00:00:00 2001 From: pmoura Date: Wed, 2 Apr 2008 22:45:55 +0000 Subject: [PATCH] Added description of the default value of max_workers and of the new thread_create/3 option at_exit/1. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2192 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- docs/yap.tex | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/yap.tex b/docs/yap.tex index 2fb0d3b41..3835d2708 100644 --- a/docs/yap.tex +++ b/docs/yap.tex @@ -547,7 +547,8 @@ predicates provided by YAP. Depending on the operating system, the option @code{--enable-pthread-locking} may also need to be used. @item @code{--with-max-threads} allows definition of the maximum -number of threads. +number of threads (the default value is 1024; its value can be consulted +at runtime using the flag @code{max_threads}). @end itemize @@ -12137,6 +12138,10 @@ Associate an alias-name with the thread. This named may be used to refer to the thread and remains valid until the thread is joined (see @code{thread_join/2}). + @item at_exit +Define an exit hook for the thread. This hook is called when the thread +terminates, no matter its exit status. + @item detached If @code{false} (default), the thread can be waited for using @code{thread_join/2}. @code{thread_join/2} must be called on this thread @@ -12303,6 +12308,9 @@ The thread status of a thread (see below). @item alias(@var{Alias}) The thread alias, if it exists. + @item at_exit(@var{AtExit}) +The thread exit hook, if defined (not available if the thread is already terminated). + @item detached(@var{Boolean}) The detached state of the thread.