Skip to content

Commit 8642071

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

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

449449
There is no return value.
450450

451+
.. method:: locked()
452+
Return true if the lock is acquired.
453+
454+
451455

452456
.. _rlock-objects:
453457

0 commit comments

Comments
 (0)