]> git.saurik.com Git - wxWidgets.git/commitdiff
semaphore with count of 1 is not exactly the same as mutex
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Oct 2007 00:13:51 +0000 (00:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Oct 2007 00:13:51 +0000 (00:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/semaphor.tex

index ebf41109adbaa3b554fd6a198b5bca3e90dc7058..9d9271f944dfd1da26d27bba866362fa8b0c2636 100644 (file)
@@ -47,8 +47,9 @@ No base class
 \func{}{wxSemaphore}{\param{int }{initialcount = 0}, \param{int }{maxcount = 0}}
 
 Specifying a {\it maxcount} of $0$ actually makes wxSemaphore behave as if
-there is no upper limit. If maxcount is $1$, the semaphore behaves exactly as a
-mutex.
+there is no upper limit. If maxcount is $1$, the semaphore behaves almost as a
+mutex (but unlike a mutex it can be released by a thread different from the one
+which acquired it).
 
 {\it initialcount} is the initial value of the semaphore which must be between
 $0$ and {\it maxcount} (if it is not set to $0$).