Skip to content

Commit d300c0e

Browse files
document threading.Lock.locked() (GH-17427)
(cherry picked from commit fdafa1d) Co-authored-by: idomic <michael.ido@gmail.com>
1 parent 5f23453 commit d300c0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/threading.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,10 @@ All methods are executed atomically.
488488

489489
There is no return value.
490490

491+
.. method:: locked()
492+
Return true if the lock is acquired.
493+
494+
491495

492496
.. _rlock-objects:
493497

0 commit comments

Comments
 (0)