diff options
| author | idomic <michael.ido@gmail.com> | 2019-12-01 15:07:39 -0500 |
|---|---|---|
| committer | Tal Einat <taleinat+github@gmail.com> | 2019-12-01 22:07:39 +0200 |
| commit | fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388 (patch) | |
| tree | 841bee353e4f284060cd315f2cdce6ad4fce2806 | |
| parent | 575d0b46d122292ca6e0576a91265d7abf7cbc3d (diff) | |
| download | cpython-git-fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388.tar.gz | |
document threading.Lock.locked() (GH-17427)
| -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 9a68491fbd..96989bdd52 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: |
