]> granicus.if.org Git - python/commitdiff
Explain a little more.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 14 Aug 2002 17:46:40 +0000 (17:46 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 14 Aug 2002 17:46:40 +0000 (17:46 +0000)
Lib/threading.py

index e2ce9fe6576f50a092703802a003b283ba0b54d5..fb6201004f68ebae6c5959573bc6d438e199a254 100644 (file)
@@ -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()