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

Unified Diff: content/renderer/categorized_worker_pool.h

Issue 2047433004: content: Add heartbeat trace for CategorizedWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 6 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/synchronization/condition_variable_win.cc ('k') | content/renderer/categorized_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/categorized_worker_pool.h
diff --git a/content/renderer/categorized_worker_pool.h b/content/renderer/categorized_worker_pool.h
index 2f75f2183f24d0c145e55697f53c86470f371837..cbfd74b9028b8e6df1d242d235c4328e3ea64215 100644
--- a/content/renderer/categorized_worker_pool.h
+++ b/content/renderer/categorized_worker_pool.h
@@ -116,6 +116,10 @@ class CONTENT_EXPORT CategorizedWorkerPool : public base::TaskRunner,
// low enough to start a new one.
bool ShouldRunTaskForCategoryWithLockAcquired(cc::TaskCategory category);
+ // Wait for more tasks to run on the given thread.
+ void WaitForMoreTasksWithLockAcquired(
+ base::ConditionVariable* has_ready_to_run_tasks_cv);
+
// The actual threads where work is done.
std::vector<std::unique_ptr<base::SimpleThread>> threads_;
« no previous file with comments | « base/synchronization/condition_variable_win.cc ('k') | content/renderer/categorized_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698