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

Unified Diff: base/synchronization/waitable_event_win.cc

Issue 2020043002: Make WaitableEvent's constructor enum-based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move enum constructor in _posix.cc 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_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/waitable_event_win.cc
diff --git a/base/synchronization/waitable_event_win.cc b/base/synchronization/waitable_event_win.cc
index 89ace19961a7e7e42bca88e2f0a3663a2e30e763..d16ba6243a6ed6c5e5a48cd9f43ccffd5ebf2bdb 100644
--- a/base/synchronization/waitable_event_win.cc
+++ b/base/synchronization/waitable_event_win.cc
@@ -16,6 +16,11 @@
namespace base {
+WaitableEvent::WaitableEvent(ResetPolicy reset_policy,
+ InitialState initial_state)
+ : WaitableEvent(reset_policy == ResetPolicy::MANUAL,
+ initial_state == InitialState::SIGNALED) {}
+
WaitableEvent::WaitableEvent(bool manual_reset, bool signaled)
: handle_(CreateEvent(NULL, manual_reset, signaled, NULL)) {
// We're probably going to crash anyways if this is ever NULL, so we might as
« no previous file with comments | « base/synchronization/waitable_event_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698