From fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388 Mon Sep 17 00:00:00 2001 From: idomic Date: Sun, 1 Dec 2019 15:07:39 -0500 Subject: document threading.Lock.locked() (GH-17427) --- Doc/library/threading.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 9a68491..96989bd 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: -- cgit v0.12