Skip to content

Commit fdafa1d

Browse files
idomictaleinat
authored andcommitted
document threading.Lock.locked() (GH-17427)
1 parent 575d0b4 commit fdafa1d

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

497497
There is no return value.
498498

499+
.. method:: locked()
500+
Return true if the lock is acquired.
501+
502+
499503

500504
.. _rlock-objects:
501505

0 commit comments

Comments
 (0)