Skip to content

Commit cbac6ee

Browse files
document threading.Lock.locked() (GH-17427)
(cherry picked from commit fdafa1d) Co-authored-by: idomic <[email protected]>
1 parent 7e9bbbe commit cbac6ee

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
@@ -418,6 +418,10 @@ All methods are executed atomically.
418418

419419
There is no return value.
420420

421+
.. method:: locked()
422+
Return true if the lock is acquired.
423+
424+
421425

422426
.. _rlock-objects:
423427

0 commit comments

Comments
 (0)