diff options
author | Georg Brandl <georg@python.org> | 2009-04-21 18:23:08 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-21 18:23:08 (GMT) |
commit | ce543566902a730abacddaed508b12f2d4ad6cd8 (patch) | |
tree | 39d1abe01092535db69401a1c15105ecfcccdbfd | |
parent | 95fb46c9774cd3e4720174592b6d4eded7ac8fb0 (diff) | |
download | cpython-ce543566902a730abacddaed508b12f2d4ad6cd8.zip cpython-ce543566902a730abacddaed508b12f2d4ad6cd8.tar.gz cpython-ce543566902a730abacddaed508b12f2d4ad6cd8.tar.bz2 |
#5757: fix copy-paste error in notify().
-rw-r--r-- | Doc/library/threading.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index efd0cff..d8af157 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -555,12 +555,12 @@ needs to wake up one consumer thread. .. method:: Condition.notify() - Wake up a thread waiting on this condition, if any. Wait until notified or until - a timeout occurs. If the calling thread has not acquired the lock when this - method is called, a :exc:`RuntimeError` is raised. + Wake up a thread waiting on this condition, if any. If the calling thread + has not acquired the lock when this method is called, a :exc:`RuntimeError` + is raised. - This method wakes up one of the threads waiting for the condition variable, if - any are waiting; it is a no-op if no threads are waiting. + This method wakes up one of the threads waiting for the condition variable, + if any are waiting; it is a no-op if no threads are waiting. The current implementation wakes up exactly one thread, if any are waiting. However, it's not safe to rely on this behavior. A future, optimized |