]> granicus.if.org Git - python/commitdiff
Add version{added,changed} for lock timeout support.
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 19 Apr 2010 14:05:51 +0000 (14:05 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 19 Apr 2010 14:05:51 +0000 (14:05 +0000)
Doc/library/_thread.rst
Doc/library/threading.rst

index d4ff6dead1116a2e3436eb3ffd11b2bb2aac468d..80fad683b4e127b5280d0e8fc95b98d0e54c11cb 100644 (file)
@@ -109,6 +109,8 @@ It defines the following constants and functions:
    :meth:`Lock.acquire`. Specifiying a timeout greater than this value will
    raise an :exc:`OverflowError`.
 
+   .. versionadded:: 3.2
+
 
 Lock objects have the following methods:
 
@@ -132,6 +134,9 @@ Lock objects have the following methods:
    The return value is ``True`` if the lock is acquired successfully,
    ``False`` if not.
 
+   .. versionchanged:: 3.2
+      The *timeout* parameter is new.
+
 .. method:: lock.release()
 
    Releases the lock.  The lock must have been acquired earlier, but not
index 0ce6c6309523d69e86a0e02e900c0a4b9459d57f..31f1b0e878f2ded4c3830374a5527bf49709af7e 100644 (file)
@@ -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()