diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-01 20:12:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-01 20:12:09 (GMT) |
commit | 864207181d74800cf3f4e6c45b637854c65aa415 (patch) | |
tree | 1e0b2281ae883d7bffe460caea4c7a46f341a41b | |
parent | e6499033032d5b647e43a3b49da0c1c64b151743 (diff) | |
download | cpython-864207181d74800cf3f4e6c45b637854c65aa415.zip cpython-864207181d74800cf3f4e6c45b637854c65aa415.tar.gz cpython-864207181d74800cf3f4e6c45b637854c65aa415.tar.bz2 |
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.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index e16f78c..9228e11 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: |