summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-01-09 20:54:15 (GMT)
committerFred Drake <fdrake@acm.org>2001-01-09 20:54:15 (GMT)
commit986eafdc2b9134bf547883331cb2fd76cda0c5a6 (patch)
treec55f3ac6e5bbfc595e6a391cd5cf8b852b70c9fa /Doc
parent37f1b34b629accbf8718de11321e7c3b27ae1ae7 (diff)
downloadcpython-986eafdc2b9134bf547883331cb2fd76cda0c5a6.zip
cpython-986eafdc2b9134bf547883331cb2fd76cda0c5a6.tar.gz
cpython-986eafdc2b9134bf547883331cb2fd76cda0c5a6.tar.bz2
Added missing word; fixed minor nits.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libmutex.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libmutex.tex b/Doc/lib/libmutex.tex
index a493682..e2c34f2 100644
--- a/Doc/lib/libmutex.tex
+++ b/Doc/lib/libmutex.tex
@@ -1,4 +1,3 @@
-% LaTeXed from comments in file
\section{\module{mutex} ---
Mutual exclusion support}
@@ -6,7 +5,7 @@
\sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il}
\modulesynopsis{Lock and queue for mutual exclusion.}
-The \module{mutex} defines a class that allows mutual-exclusion
+The \module{mutex} module defines a class that allows mutual-exclusion
via acquiring and releasing locks. It does not require (or imply)
threading or multi-tasking, though it could be useful for
those purposes.
@@ -18,7 +17,7 @@ Create a new (unlocked) mutex.
A mutex has two pieces of state --- a ``locked'' bit and a queue.
When the mutex is not locked, the queue is empty.
-Otherwise, the queue contains 0 or more
+Otherwise, the queue contains zero or more
\code{(\var{function}, \var{argument})} pairs
representing functions (or methods) waiting to acquire the lock.
When the mutex is unlocked while the queue is not empty,
@@ -27,7 +26,8 @@ the first queue entry is removed and its
implying it now has the lock.
Of course, no multi-threading is implied -- hence the funny interface
-for lock, where a function is called once the lock is acquired.
+for \method{lock()}, where a function is called once the lock is
+acquired.
\end{classdesc}