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

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: self review 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
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_ &&
gab 2016/04/14 19:34:16 Could we do something like static_assert(sizeof(Ta
robliao 2016/04/14 20:32:05 Adding discussion notes from chat: This appears t
fdoray 2016/04/14 23:46:58 Done.
+ shutdown_behavior_ == other.shutdown_behavior_;
+}
+
std::ostream& operator<<(std::ostream& os, const TaskPriority& task_priority) {
switch (task_priority) {
case TaskPriority::BACKGROUND:

Powered by Google App Engine
This is Rietveld 408576698