Commit 08527973 authored by Jeremy Hylton's avatar Jeremy Hylton

Explain use of currentThread() in _Condition methods.

parent 64ac4100
......@@ -181,7 +181,7 @@ class _Condition(_Verbose):
return True
def wait(self, timeout=None):
me = currentThread()
currentThread() # for side-effect
assert self._is_owned(), "wait() of un-acquire()d lock"
waiter = _allocate_lock()
waiter.acquire()
......@@ -223,7 +223,7 @@ class _Condition(_Verbose):
self._acquire_restore(saved_state)
def notify(self, n=1):
me = currentThread()
currentThread() # for side-effect
assert self._is_owned(), "notify() of un-acquire()d lock"
__waiters = self.__waiters
waiters = __waiters[:n]
......
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