summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-08-14 17:43:59 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-08-14 17:43:59 (GMT)
commitaf7fde7f34c6da89f4f040ffe05dcde2568cc930 (patch)
treefa0655aba962065654c086418f413fbd02c07ad2 /Lib/threading.py
parent323a9cfc8384adca677923cf3c65ad62920c76fa (diff)
downloadcpython-af7fde7f34c6da89f4f040ffe05dcde2568cc930.zip
cpython-af7fde7f34c6da89f4f040ffe05dcde2568cc930.tar.gz
cpython-af7fde7f34c6da89f4f040ffe05dcde2568cc930.tar.bz2
Explain a minor mystery.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 0af193b..e2ce9fe 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):
+ # This method is called only if __lock doesn't have _is_owned().
if self.__lock.acquire(0):
self.__lock.release()
return False