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
b7be42b1
Commit
b7be42b1
authored
Feb 04, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
merge #17091: update docstring for _thread.Lock.acquire.
parents
8216be09
95b7110a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Modules/_threadmodule.c
Modules/_threadmodule.c
+2
-2
No files found.
Modules/_threadmodule.c
View file @
b7be42b1
...
...
@@ -145,12 +145,12 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args, PyObject *kwds)
}
PyDoc_STRVAR
(
acquire_doc
,
"acquire([wait]) ->
None or
bool
\n
\
"acquire([wait]) -> bool
\n
\
(acquire_lock() is an obsolete synonym)
\n
\
\n
\
Lock the lock. Without argument, this blocks if the lock is already
\n
\
locked (even by the same thread), waiting for another thread to release
\n
\
the lock, and return
Non
e once the lock is acquired.
\n
\
the lock, and return
Tru
e once the lock is acquired.
\n
\
With an argument, this will only block if the argument is true,
\n
\
and the return value reflects whether the lock is acquired.
\n
\
The blocking operation is interruptible."
);
...
...
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