aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-12-01 12:12:09 -0800
committerGitHub <noreply@github.com>2019-12-01 12:12:09 -0800
commit864207181d74800cf3f4e6c45b637854c65aa415 (patch)
tree1e0b2281ae883d7bffe460caea4c7a46f341a41b
parentbpo-38804: Fix REDoS in http.cookiejar (GH-17157) (GH-17345) (diff)
downloadcpython-864207181d74800cf3f4e6c45b637854c65aa415.tar.gz
cpython-864207181d74800cf3f4e6c45b637854c65aa415.tar.bz2
cpython-864207181d74800cf3f4e6c45b637854c65aa415.zip
document threading.Lock.locked() (GH-17427)
(cherry picked from commit fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388) Co-authored-by: idomic <michael.ido@gmail.com>
-rw-r--r--Doc/library/threading.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index e16f78c2047..9228e114423 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -448,6 +448,10 @@ All methods are executed atomically.
There is no return value.
+ .. method:: locked()
+ Return true if the lock is acquired.
+
+
.. _rlock-objects: