diff options
author | idomic <michael.ido@gmail.com> | 2019-12-01 20:07:39 (GMT) |
---|---|---|
committer | Tal Einat <taleinat+github@gmail.com> | 2019-12-01 20:07:39 (GMT) |
commit | fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388 (patch) | |
tree | 841bee353e4f284060cd315f2cdce6ad4fce2806 /Doc/library/threading.rst | |
parent | 575d0b46d122292ca6e0576a91265d7abf7cbc3d (diff) | |
download | cpython-fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388.zip cpython-fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388.tar.gz cpython-fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388.tar.bz2 |
document threading.Lock.locked() (GH-17427)
Diffstat (limited to 'Doc/library/threading.rst')
-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 9a68491..96989bd 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -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: |