diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-08-14 17:46:40 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-08-14 17:46:40 +0000 |
commit | bf34b477ce8de29d58226e961cd35f6adc4f766b (patch) | |
tree | f1bb02cbfb82f3b57c49a41f1a6315c7dfe4a27e /Lib/threading.py | |
parent | 23935eb05c2c066bde0ae194ae1274f2db5e1d96 (diff) | |
download | cpython-bf34b477ce8de29d58226e961cd35f6adc4f766b.tar.gz |
Explain a little more.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 1 |
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() |