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
dd959745
Commit
dd959745
authored
May 17, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
#14823: Simplify threading.Lock.acquire argument discussion.
parents
f398a948
f7a66157
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
Doc/library/threading.rst
Doc/library/threading.rst
+5
-8
No files found.
Doc/library/threading.rst
View file @
dd959745
...
@@ -426,15 +426,12 @@ All methods are executed atomically.
...
@@ -426,15 +426,12 @@ All methods are executed atomically.
Acquire a lock, blocking or non-blocking.
Acquire a lock, blocking or non-blocking.
When invoked with
out arguments, block until the lock is unlocked, then set it to
When invoked with
the *blocking* argument set to ``True`` (the default),
locked, and return true
.
block until the lock is unlocked, then set it to locked and return ``True``
.
When invoked with the *blocking* argument set to true, do the same thing as when
When invoked with the *blocking* argument set to ``False``, do not block.
called without arguments, and return true.
If a call with *blocking* set to ``True`` would block, return ``False``
immediately; otherwise, set the lock to locked and return ``True``.
When invoked with the *blocking* argument set to false, do not block. If a call
without an argument would block, return false immediately; otherwise, do the
same thing as when called without arguments, and return true.
When invoked with the floating-point *timeout* argument set to a positive
When invoked with the floating-point *timeout* argument set to a positive
value, block for at most the number of seconds specified by *timeout*
value, block for at most the number of seconds specified by *timeout*
...
...
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