Commit 39c12bfb authored by Jeremy Hylton's avatar Jeremy Hylton

Explain a little more.

parent af7fde7f
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment