Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
986eafdc
Commit
986eafdc
authored
Jan 09, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing word; fixed minor nits.
parent
37f1b34b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/lib/libmutex.tex
Doc/lib/libmutex.tex
+4
-4
No files found.
Doc/lib/libmutex.tex
View file @
986eafdc
% 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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment