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

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

Issue 2873733003: Introduce SingleThreadTaskRunnerThreadMode (Closed)
Patch Set: Add missing "base" Created 3 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 unified diff | Download patch
« no previous file with comments | « base/BUILD.gn ('k') | base/task_scheduler/task_scheduler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef BASE_TASK_SCHEDULER_SINGLE_THREAD_TASK_RUNNER_THREAD_MODE_H_
6 #define BASE_TASK_SCHEDULER_SINGLE_THREAD_TASK_RUNNER_THREAD_MODE_H_
7
8 namespace base {
9
10 enum class SingleThreadTaskRunnerThreadMode {
11 // Allow the SingleThreadTaskRunner's thread to be shared with others,
12 // allowing for efficient use of thread resources when this
13 // SingleThreadTaskRunner is idle. This is the default mode and is
14 // recommended for most code.
15 SHARED,
16 // Dedicate a single thread for this SingleThreadTaskRunner. No other tasks
17 // from any other source will be scheduled on the thread backing
18 // the SingleThreadTaskRunner. Use sparingly as this reserves an entire
19 // thread for this SingleThreadTaskRunner.
20 DEDICATED,
21 };
22
23 } // namespace base
24
25 #endif // BASE_TASK_SCHEDULER_SINGLE_THREAD_TASK_RUNNER_THREAD_MODE_H_
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | base/task_scheduler/task_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698