diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-19 14:05:51 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-19 14:05:51 (GMT) |
commit | adbc009779995cb20f17aa24e25fcaf070974b6e (patch) | |
tree | 379dc7dc496dac3ce2c4f47424dbfb5eaf46ca5e /Doc/library/threading.rst | |
parent | 05a2f881261f3bf3bdcb990fdd90a09b23a2021a (diff) | |
download | cpython-adbc009779995cb20f17aa24e25fcaf070974b6e.zip cpython-adbc009779995cb20f17aa24e25fcaf070974b6e.tar.gz cpython-adbc009779995cb20f17aa24e25fcaf070974b6e.tar.bz2 |
Add version{added,changed} for lock timeout support.
Diffstat (limited to 'Doc/library/threading.rst')
-rw-r--r-- | Doc/library/threading.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 0ce6c63..31f1b0e 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -164,6 +164,7 @@ This module also defines the following constant: Specifiying a timeout greater than this value will raise an :exc:`OverflowError`. + .. versionadded:: 3.2 Detailed interfaces for the objects are documented below. @@ -382,6 +383,8 @@ All methods are executed atomically. The return value is ``True`` if the lock is acquired successfully, ``False`` if not (for example if the *timeout* expired). + .. versionchanged:: 3.2 + The *timeout* parameter is new. .. method:: Lock.release() @@ -439,6 +442,9 @@ pair) resets the lock to unlocked and allows another thread blocked in and as long as the lock cannot be acquired. Return true if the lock has been acquired, false if the timeout has elapsed. + .. versionchanged:: 3.2 + The *timeout* parameter is new. + .. method:: RLock.release() |