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

Unified Diff: base/task_scheduler/task_scheduler_impl.h

Issue 2163753004: Rename CancellationFlag to AtomicFlag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix dcheck death test Created 4 years, 5 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/cancellation_flag_unittest.cc ('k') | base/task_scheduler/task_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_scheduler_impl.h
diff --git a/base/task_scheduler/task_scheduler_impl.h b/base/task_scheduler/task_scheduler_impl.h
index 9c8f4c5998363c30ce8fa9eb516833eccc9653a2..9efd6d769b0a7dbbedb5e579fad29a438cedc0c5 100644
--- a/base/task_scheduler/task_scheduler_impl.h
+++ b/base/task_scheduler/task_scheduler_impl.h
@@ -16,7 +16,7 @@
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/synchronization/waitable_event.h"
+#include "base/synchronization/atomic_flag.h"
#include "base/task_runner.h"
#include "base/task_scheduler/delayed_task_manager.h"
#include "base/task_scheduler/scheduler_worker_pool_impl.h"
@@ -93,8 +93,8 @@ class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {
std::unique_ptr<SchedulerServiceThread> service_thread_;
#if DCHECK_IS_ON()
- // Signaled once JoinForTesting() has returned.
- WaitableEvent join_for_testing_returned_;
+ // Set once JoinForTesting() has returned.
+ AtomicFlag join_for_testing_returned_;
#endif
DISALLOW_COPY_AND_ASSIGN(TaskSchedulerImpl);
« no previous file with comments | « base/synchronization/cancellation_flag_unittest.cc ('k') | base/task_scheduler/task_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698