From: Jeremy Hylton Date: Wed, 14 Aug 2002 17:56:13 +0000 (+0000) Subject: Explain use of currentThread() in _Condition methods. X-Git-Tag: v2.3c1~4464 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29c2106465afdcb3f48f3ef6cca7660fa644764d;p=python Explain use of currentThread() in _Condition methods. --- diff --git a/Lib/threading.py b/Lib/threading.py index fb6201004f..52757c62f9 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -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]