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

Unified Diff: base/task_scheduler/task_traits.cc

Issue 1708773002: TaskScheduler [7] SchedulerThreadPool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s_5_worker_thread
Patch Set: fix windows build error Created 4 years, 8 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/task_scheduler/task_traits.h ('k') | base/task_scheduler/utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_traits.cc
diff --git a/base/task_scheduler/task_traits.cc b/base/task_scheduler/task_traits.cc
index 5a0906402ecb251a2a8f3d83f00ae599c64d5bb5..ad0e37f887166009b9608cf680a90d505e276f45 100644
--- a/base/task_scheduler/task_traits.cc
+++ b/base/task_scheduler/task_traits.cc
@@ -34,6 +34,11 @@ TaskTraits& TaskTraits::WithShutdownBehavior(
return *this;
}
+bool TaskTraits::operator==(const TaskTraits& other) const {
+ return with_file_io_ == other.with_file_io_ && priority_ == other.priority_ &&
+ shutdown_behavior_ == other.shutdown_behavior_;
+}
+
std::ostream& operator<<(std::ostream& os, const TaskPriority& task_priority) {
switch (task_priority) {
case TaskPriority::BACKGROUND:
« no previous file with comments | « base/task_scheduler/task_traits.h ('k') | base/task_scheduler/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698