From: Jeremy Hylton Date: Wed, 14 Aug 2002 17:46:40 +0000 (+0000) Subject: Explain a little more. X-Git-Tag: v2.3c1~4466 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39c12bfba1f2094d9ee997ee71e816980ff674f7;p=python Explain a little more. --- diff --git a/Lib/threading.py b/Lib/threading.py index e2ce9fe657..fb6201004f 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -172,6 +172,7 @@ class _Condition(_Verbose): self.__lock.acquire() # Ignore saved state def _is_owned(self): + # Return True if lock is owned by currentThread. # This method is called only if __lock doesn't have _is_owned(). if self.__lock.acquire(0): self.__lock.release()