X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2Fmanual%2Fthreading.texinfo;h=21d27560ced2d921352736c3d9c441959ecfe77d;hb=171fde84561e232b8af8c05b82dfe8a8f9e08340;hp=5a6bfb278b4e4d3d395168eb38d5fffc65212b22;hpb=b71b8da241791687e7752f917ca032d937ba2bbf;p=sbcl.git diff --git a/doc/manual/threading.texinfo b/doc/manual/threading.texinfo index 5a6bfb2..21d2756 100644 --- a/doc/manual/threading.texinfo +++ b/doc/manual/threading.texinfo @@ -107,7 +107,7 @@ useful for implementing lockless algorithms. @include macro-sb-ext-atomic-incf.texinfo @include macro-sb-ext-compare-and-swap.texinfo -@subsection CAS Protocol +@unnumberedsubsec CAS Protocol Our @code{compare-and-swap} is user-extensible using a protocol similar to @code{setf}: @@ -152,25 +152,32 @@ if you want a bounded wait. @include fun-sb-thread-make-mutex.texinfo @include fun-sb-thread-mutex-name.texinfo @include fun-sb-thread-mutex-value.texinfo -@include fun-sb-thread-get-mutex.texinfo +@include fun-sb-thread-grab-mutex.texinfo @include fun-sb-thread-release-mutex.texinfo @include macro-sb-thread-with-mutex.texinfo @include macro-sb-thread-with-recursive-lock.texinfo +@include fun-sb-thread-get-mutex.texinfo @node Semaphores @comment node-name, next, previous, up @section Semaphores -described here should be considered -experimental, subject to API changes without notice. +Semaphores are among other things useful for keeping track of a +countable resource, eg. messages in a queue, and sleep when the +resource is exhausted. @include struct-sb-thread-semaphore.texinfo @include fun-sb-thread-make-semaphore.texinfo -@include fun-sb-thread-semaphore-count.texinfo -@include fun-sb-thread-semaphore-name.texinfo @include fun-sb-thread-signal-semaphore.texinfo -@include fun-sb-thread-try-semaphore.texinfo @include fun-sb-thread-wait-on-semaphore.texinfo +@include fun-sb-thread-try-semaphore.texinfo +@include fun-sb-thread-semaphore-count.texinfo +@include fun-sb-thread-semaphore-name.texinfo + +@include struct-sb-thread-semaphore-notification.texinfo +@include fun-sb-thread-make-semaphore-notification.texinfo +@include fun-sb-thread-semaphore-notification-status.texinfo +@include fun-sb-thread-clear-semaphore-notification.texinfo @node Waitqueue/condition variables @comment node-name, next, previous, up