summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-08-14 17:56:13 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-08-14 17:56:13 (GMT)
commit29c2106465afdcb3f48f3ef6cca7660fa644764d (patch)
tree48a345ca1176416c938f0780c1208b2ec95e2432 /Lib/threading.py
parent88b1defb6f770c4f74788e8296b88fc31c3936ce (diff)
downloadcpython-29c2106465afdcb3f48f3ef6cca7660fa644764d.zip
cpython-29c2106465afdcb3f48f3ef6cca7660fa644764d.tar.gz
cpython-29c2106465afdcb3f48f3ef6cca7660fa644764d.tar.bz2
Explain use of currentThread() in _Condition methods.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index fb62010..52757c6 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]