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

Unified Diff: base/task_scheduler/priority_queue.h

Issue 2801673002: Separate the create and start phases in SchedulerWorkerPoolImpl. (Closed)
Patch Set: self-review Created 3 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/priority_queue.h
diff --git a/base/task_scheduler/priority_queue.h b/base/task_scheduler/priority_queue.h
index 2844ef3fa5442a9b7ba93b15c72626f46e187a83..d882364b2802914b98d69900b20871652c867ff0 100644
--- a/base/task_scheduler/priority_queue.h
+++ b/base/task_scheduler/priority_queue.h
@@ -55,6 +55,9 @@ class BASE_EXPORT PriorityQueue {
// Returns true if the PriorityQueue is empty.
bool IsEmpty() const;
+ // Returns the number of Sequences in the PriorityQueue.
+ size_t Size() const;
+
private:
friend class PriorityQueue;
« no previous file with comments | « no previous file | base/task_scheduler/priority_queue.cc » ('j') | base/task_scheduler/scheduler_worker_pool_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698