Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: base/synchronization/waitable_event_posix.cc

Issue 2020043002: Make WaitableEvent's constructor enum-based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/synchronization/waitable_event.h ('k') | base/synchronization/waitable_event_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/waitable_event_posix.cc
diff --git a/base/synchronization/waitable_event_posix.cc b/base/synchronization/waitable_event_posix.cc
index 64d4376fe5654b486ea1e43cef7dc71a08fad215..bb5e8d7b7540c4a0eeb738b97aea429d0c81da82 100644
--- a/base/synchronization/waitable_event_posix.cc
+++ b/base/synchronization/waitable_event_posix.cc
@@ -36,6 +36,11 @@
namespace base {
+WaitableEvent::WaitableEvent(ResetPolicy reset_policy,
danakj 2016/05/31 20:06:41 Can you group this with the other constructor more
gab 2016/05/31 21:00:13 Done.
+ InitialState initial_state)
+ : WaitableEvent(reset_policy == ResetPolicy::MANUAL,
+ initial_state == InitialState::SIGNALED) {}
+
// -----------------------------------------------------------------------------
// This is just an abstract base class for waking the two types of waiters
// -----------------------------------------------------------------------------
« no previous file with comments | « base/synchronization/waitable_event.h ('k') | base/synchronization/waitable_event_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698