[issue29449] clear() should return prior state in threading.Event
Serhiy Storchaka
report at bugs.python.org
Mon Feb 6 04:00:11 EST 2017
Serhiy Storchaka added the comment:
> A return value from clear will indicate to a thread if it won the race to clear the event.
I think other synchronization primitives should be used for this. I'm not sure that other implementations of Event (e.g. multiprocessing.Event) can efficiently return the previous state.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29449>
_______________________________________
More information about the Python-bugs-list
mailing list