diff options
author | Georg Brandl <georg@python.org> | 2009-03-31 20:41:08 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-03-31 20:41:08 +0000 |
commit | ef660e8e50c607c8abcb02274decdcb6eff1d1b8 (patch) | |
tree | 2ce16cdb866acbf4071fdaab760daf84e8cc40fb /Lib/threading.py | |
parent | 1d7d5325be5c766c3446dcf0fce4ebce73d83fa7 (diff) | |
download | cpython-git-ef660e8e50c607c8abcb02274decdcb6eff1d1b8.tar.gz |
#1674032: return value of flag from Event.wait(). OKed by Guido.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index a776c66752..cc2be1b860 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -391,6 +391,7 @@ class _Event(_Verbose): try: if not self.__flag: self.__cond.wait(timeout) + return self.__flag finally: self.__cond.release() |