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

Side by Side Diff: base/task_scheduler/task_traits.h

Issue 1705943002: TaskScheduler [5/9] Task Tracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s_3_pq
Patch Set: CR robliao #61 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 unified diff | Download patch
« no previous file with comments | « base/task_scheduler/task_tracker_unittest.cc ('k') | base/task_scheduler/task_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TASK_SCHEDULER_TASK_TRAITS_H_ 5 #ifndef BASE_TASK_SCHEDULER_TASK_TRAITS_H_
6 #define BASE_TASK_SCHEDULER_TASK_TRAITS_H_ 6 #define BASE_TASK_SCHEDULER_TASK_TRAITS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <iosfwd> 10 #include <iosfwd>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 PARALLEL, 119 PARALLEL,
120 120
121 // Executes one task at a time in posting order. The sequence’s priority is 121 // Executes one task at a time in posting order. The sequence’s priority is
122 // equivalent to the highest priority pending task in the sequence. 122 // equivalent to the highest priority pending task in the sequence.
123 SEQUENCED, 123 SEQUENCED,
124 124
125 // Executes one task at a time on a single thread in posting order. 125 // Executes one task at a time on a single thread in posting order.
126 SINGLE_THREADED, 126 SINGLE_THREADED,
127 }; 127 };
128 128
129 // Pretty Printer for Google Test. 129 // Stream operators so TaskPriority and TaskShutdownBehavior can be used in
130 void BASE_EXPORT PrintTo(const TaskPriority& task_priority, std::ostream* os); 130 // DCHECK statements.
131 BASE_EXPORT std::ostream& operator<<(std::ostream& os,
132 const TaskPriority& shutdown_behavior);
133
134 BASE_EXPORT std::ostream& operator<<(
135 std::ostream& os,
136 const TaskShutdownBehavior& shutdown_behavior);
131 137
132 } // namespace base 138 } // namespace base
133 139
134 #endif // BASE_TASK_SCHEDULER_TASK_TRAITS_H_ 140 #endif // BASE_TASK_SCHEDULER_TASK_TRAITS_H_
OLDNEW
« no previous file with comments | « base/task_scheduler/task_tracker_unittest.cc ('k') | base/task_scheduler/task_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698