]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
document threading.Lock.locked() (GH-17427)
authoridomic <michael.ido@gmail.com>
Sun, 1 Dec 2019 20:07:39 +0000 (15:07 -0500)
committerTal Einat <taleinat+github@gmail.com>
Sun, 1 Dec 2019 20:07:39 +0000 (22:07 +0200)
Doc/library/threading.rst

index 9a68491fbd53f750190aff53414c2e756e3ca585..96989bdd525e08128959f4fb5cee652303b5f03a 100644 (file)
@@ -496,6 +496,10 @@ All methods are executed atomically.
 
       There is no return value.
 
+   .. method:: locked()
+      Return true if the lock is acquired.
+
+
 
 .. _rlock-objects: