Index: base/task_scheduler/scheduler_worker_pool_impl.h |
diff --git a/base/task_scheduler/scheduler_worker_pool_impl.h b/base/task_scheduler/scheduler_worker_pool_impl.h |
index 136ad62335edf135e53978943d275cfea968baa7..178133daf6e7cedae0a0c01a7b64036d2341dbba 100644 |
--- a/base/task_scheduler/scheduler_worker_pool_impl.h |
+++ b/base/task_scheduler/scheduler_worker_pool_impl.h |
@@ -65,21 +65,6 @@ class BASE_EXPORT SchedulerWorkerPoolImpl : public SchedulerWorkerPool { |
TaskTracker* task_tracker, |
DelayedTaskManager* delayed_task_manager); |
- // Waits until all workers are idle. |
- void WaitForAllWorkersIdleForTesting(); |
- |
- // Joins all workers of this worker pool. Tasks that are already running are |
- // allowed to complete their execution. This can only be called once. |
- void JoinForTesting(); |
- |
- // Disallows worker thread detachment. If the suggested reclaim time is not |
- // TimeDelta::Max(), then the test should call this before the detach code can |
- // run. The safest place to do this is before the a set of work is dispatched |
- // (the worker pool is idle and steady state) or before the last |
- // synchronization point for all workers (all threads are busy and can't be |
- // reclaimed). |
- void DisallowWorkerDetachmentForTesting(); |
- |
// SchedulerWorkerPool: |
scoped_refptr<TaskRunner> CreateTaskRunnerWithTraits( |
const TaskTraits& traits) override; |
@@ -106,6 +91,21 @@ class BASE_EXPORT SchedulerWorkerPoolImpl : public SchedulerWorkerPool { |
void GetHistograms(std::vector<const HistogramBase*>* histograms) const; |
+ // Waits until all workers are idle. |
+ void WaitForAllWorkersIdleForTesting(); |
+ |
+ // Joins all workers of this worker pool. Tasks that are already running are |
+ // allowed to complete their execution. This can only be called once. |
+ void JoinForTesting(); |
+ |
+ // Disallows worker thread detachment. If the suggested reclaim time is not |
+ // TimeDelta::Max(), then the test should call this before the detach code can |
+ // run. The safest place to do this is before the a set of work is dispatched |
+ // (the worker pool is idle and steady state) or before the last |
+ // synchronization point for all workers (all threads are busy and can't be |
+ // reclaimed). |
+ void DisallowWorkerDetachmentForTesting(); |
+ |
private: |
class SchedulerSingleThreadTaskRunner; |
class SchedulerWorkerDelegateImpl; |