Everytime I see a call to WaitableEvent(bool, bool), I have to lookup waitable_event.h to remember the order of the bools...
How about we change it to:
class WaitableEvent {
enum class Type {
MANUAL_INITIALLY_SIGNALED,
MANUAL_NOT_SIGNALED,
AUTOMATIC_INITIALLY_SIGNALED,
AUTOMATIC_NOT_SIGNALED,
}
WaitableEvent(Type type);
};
I can see how to make this happen once we reach consensus on what we want (@ base owners to weigh in).
Comment 1 by thakis@chromium.org
, May 18 2016