Explain a minor mystery.
This commit is contained in:
parent
323a9cfc83
commit
af7fde7f34
|
@ -172,6 +172,7 @@ class _Condition(_Verbose):
|
||||||
self.__lock.acquire() # Ignore saved state
|
self.__lock.acquire() # Ignore saved state
|
||||||
|
|
||||||
def _is_owned(self):
|
def _is_owned(self):
|
||||||
|
# This method is called only if __lock doesn't have _is_owned().
|
||||||
if self.__lock.acquire(0):
|
if self.__lock.acquire(0):
|
||||||
self.__lock.release()
|
self.__lock.release()
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue