]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
document threading.Lock.locked() (GH-17427)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 1 Dec 2019 20:13:18 +0000 (12:13 -0800)
committerGitHub <noreply@github.com>
Sun, 1 Dec 2019 20:13:18 +0000 (12:13 -0800)
(cherry picked from commit fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388)

Co-authored-by: idomic <michael.ido@gmail.com>
Doc/library/threading.rst

index 6fcdd42d6080d84c196ecab5b7d3f6c14895245e..02af94eda6cc9e2c19fe59d18a890bd2eb758a78 100644 (file)
@@ -418,6 +418,10 @@ All methods are executed atomically.
 
       There is no return value.
 
+   .. method:: locked()
+      Return true if the lock is acquired.
+
+
 
 .. _rlock-objects: