mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
[Bug #1209880] Describe only the True/False return values from lock.acquire()
This commit is contained in:
parent
6a15c5d038
commit
921879abc2
2 changed files with 3 additions and 4 deletions
|
@ -81,11 +81,11 @@ Lock objects have the following methods:
|
|||
Without the optional argument, this method acquires the lock
|
||||
unconditionally, if necessary waiting until it is released by another
|
||||
thread (only one thread at a time can acquire a lock --- that's their
|
||||
reason for existence), and returns \code{None}. If the integer
|
||||
reason for existence). If the integer
|
||||
\var{waitflag} argument is present, the action depends on its
|
||||
value: if it is zero, the lock is only acquired if it can be acquired
|
||||
immediately without waiting, while if it is nonzero, the lock is
|
||||
acquired unconditionally as before. If an argument is present, the
|
||||
acquired unconditionally as before. The
|
||||
return value is \code{True} if the lock is acquired successfully,
|
||||
\code{False} if not.
|
||||
\end{methoddesc}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue