summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-08-14 17:46:40 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-08-14 17:46:40 (GMT)
commit39c12bfba1f2094d9ee997ee71e816980ff674f7 (patch)
tree7eda0054419195540fc8b8ddaa2ead5412a00bae
parentaf7fde7f34c6da89f4f040ffe05dcde2568cc930 (diff)
downloadcpython-39c12bfba1f2094d9ee997ee71e816980ff674f7.zip
cpython-39c12bfba1f2094d9ee997ee71e816980ff674f7.tar.gz
cpython-39c12bfba1f2094d9ee997ee71e816980ff674f7.tar.bz2
Explain a little more.
-rw-r--r--Lib/threading.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index e2ce9fe..fb62010 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()