diff options
| author | Charles-François Natali <neologix@free.fr> | 2012-01-07 18:24:56 +0100 |
|---|---|---|
| committer | Charles-François Natali <neologix@free.fr> | 2012-01-07 18:24:56 +0100 |
| commit | ded0348c08f298fda4426eb2a62cc3d50eed25b5 (patch) | |
| tree | f762e7f1f50cce89494a53a5744ad307d0d02b2d /Doc/library/threading.rst | |
| parent | b52e7a9a364096d355d32927c537389cfc10a5db (diff) | |
| download | cpython-git-ded0348c08f298fda4426eb2a62cc3d50eed25b5.tar.gz | |
Issue #13502: threading: Fix a race condition in Event.wait() that made it
return False when the event was set and cleared right after.
Diffstat (limited to 'Doc/library/threading.rst')
| -rw-r--r-- | Doc/library/threading.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index c226dd46c8..9b3affd979 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -782,8 +782,10 @@ An event object manages an internal flag that can be set to true with the floating point number specifying a timeout for the operation in seconds (or fractions thereof). - This method returns the internal flag on exit, so it will always return - ``True`` except if a timeout is given and the operation times out. + This method returns true if and only if the internal flag has been set to + true, either before the wait call or after the wait starts, so it will + always return ``True`` except if a timeout is given and the operation + times out. .. versionchanged:: 3.1 Previously, the method always returned ``None``. |
