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

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: fix windows build error 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
« no previous file with comments | « base/base.gypi ('k') | base/task_scheduler/scheduler_task_executor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/priority_queue.h
diff --git a/base/task_scheduler/priority_queue.h b/base/task_scheduler/priority_queue.h
index 9bc7cf16ba05bef5dced32193a7f11e6bf67c003..816c53b7a12d0be5052c9c3efd8428c9c035e6eb 100644
--- a/base/task_scheduler/priority_queue.h
+++ b/base/task_scheduler/priority_queue.h
@@ -96,6 +96,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,
« no previous file with comments | « base/base.gypi ('k') | base/task_scheduler/scheduler_task_executor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698