From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 1 Dec 2019 20:13:18 +0000 (-0800) Subject: document threading.Lock.locked() (GH-17427) X-Git-Tag: v3.7.6rc1~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cbac6ee3f6aaced5b4f8126199eef89c64ef99fc;p=thirdparty%2FPython%2Fcpython.git document threading.Lock.locked() (GH-17427) (cherry picked from commit fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388) Co-authored-by: idomic --- diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 6fcdd42d6080..02af94eda6cc 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -418,6 +418,10 @@ All methods are executed atomically. There is no return value. + .. method:: locked() + Return true if the lock is acquired. + + .. _rlock-objects: