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

Unified Diff: cc/base/completion_event.h

Issue 2029903003: Migrate WaitableEvent to enum-based constructor in completion_event.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3_readwritelock
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/completion_event.h
diff --git a/cc/base/completion_event.h b/cc/base/completion_event.h
index 36e8954c99565f35b70847b1cc3b85cdbc1b8667..edee0b78bf0e7bff28b07b878faae6a2ea858cce 100644
--- a/cc/base/completion_event.h
+++ b/cc/base/completion_event.h
@@ -19,7 +19,8 @@ namespace cc {
class CompletionEvent {
public:
CompletionEvent()
- : event_(false /* manual_reset */, false /* initially_signaled */) {
+ : event_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED) {
#if DCHECK_IS_ON()
waited_ = false;
signaled_ = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698