Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libthread.tex @ 34997:21251e221e56 2.4
[Bug #1209880] Describe only the True/False return values from lock.acquire()
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Thu, 02 Jun 2005 17:01:08 +0000 |
| parents | e6a78dd425c8 |
| children | 525624e94e78 af24eb3bbfce |
line wrap: on
line diff
--- a/Doc/lib/libthread.tex Thu Jun 02 13:52:07 2005 +0000 +++ b/Doc/lib/libthread.tex Thu Jun 02 17:01:08 2005 +0000 @@ -81,11 +81,11 @@ 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}
