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

Unified Diff: base/task_scheduler/priority_queue.h

Issue 1708773002: TaskScheduler [7] SchedulerThreadPool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s_5_worker_thread
Patch Set: merge SchedulerWorkerThreadDelegate 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/priority_queue.h
diff --git a/base/task_scheduler/priority_queue.h b/base/task_scheduler/priority_queue.h
index 726c682b485f45471c5caa03b1f0a627fc8aecd3..3717f2bfb5b4b2fd63c90e3253ec8aa868aa0ca7 100644
--- a/base/task_scheduler/priority_queue.h
+++ b/base/task_scheduler/priority_queue.h
@@ -115,6 +115,8 @@ class BASE_EXPORT PriorityQueue {
// PriorityQueue.
std::unique_ptr<Transaction> BeginTransaction();
+ const SchedulerLock* container_lock() const { return &container_lock_; }
+
private:
struct SequenceAndSortKeyComparator {
bool operator()(const std::unique_ptr<SequenceAndSortKey>& left,

Powered by Google App Engine
This is Rietveld 408576698