projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88b1def
)
Explain use of currentThread() in _Condition methods.
author
Jeremy Hylton
<jeremy@alum.mit.edu>
Wed, 14 Aug 2002 17:56:13 +0000
(17:56 +0000)
committer
Jeremy Hylton
<jeremy@alum.mit.edu>
Wed, 14 Aug 2002 17:56:13 +0000
(17:56 +0000)
Lib/threading.py
patch
|
blob
|
history
diff --git
a/Lib/threading.py
b/Lib/threading.py
index fb6201004f68ebae6c5959573bc6d438e199a254..52757c62f95c5254f599e24cbf6ab7e40c53a376 100644
(file)
--- 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]