From: Georg Brandl Date: Tue, 21 Apr 2009 18:23:08 +0000 (+0000) Subject: #5757: fix copy-paste error in notify(). X-Git-Tag: v2.7a1~1440 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce543566902a730abacddaed508b12f2d4ad6cd8;p=python #5757: fix copy-paste error in notify(). --- diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index efd0cff7c3..d8af15726b 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