diff options
-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 |