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

Unified Diff: tools/gn/input_file_manager.cc

Issue 2023003005: Migrate WaitableEvent to enum-based constructor in tools/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
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 | « tools/battor_agent/battor_agent_bin.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/input_file_manager.cc
diff --git a/tools/gn/input_file_manager.cc b/tools/gn/input_file_manager.cc
index 36c0bf3c264c4444819d38f15a0aa12552d01762..c695655658dc13988c94d66ef0bbd068fe68648f 100644
--- a/tools/gn/input_file_manager.cc
+++ b/tools/gn/input_file_manager.cc
@@ -203,8 +203,11 @@ const ParseNode* InputFileManager::SyncLoadFile(
if (!data->loaded) {
// Wait for the already-pending sync load to complete.
- if (!data->completion_event)
- data->completion_event.reset(new base::WaitableEvent(false, false));
+ if (!data->completion_event) {
+ data->completion_event.reset(new base::WaitableEvent(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED));
+ }
{
base::AutoUnlock unlock(lock_);
data->completion_event->Wait();
« no previous file with comments | « tools/battor_agent/battor_agent_bin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698