summaryrefslogtreecommitdiff
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-08-14 17:46:40 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2002-08-14 17:46:40 +0000
commitbf34b477ce8de29d58226e961cd35f6adc4f766b (patch)
treef1bb02cbfb82f3b57c49a41f1a6315c7dfe4a27e /Lib/threading.py
parent23935eb05c2c066bde0ae194ae1274f2db5e1d96 (diff)
downloadcpython-bf34b477ce8de29d58226e961cd35f6adc4f766b.tar.gz
Explain a little more.
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 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()