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

Unified Diff: content/child/child_process.cc

Issue 2334533002: base: Move renderer threads to the appropriate cpuset. (Closed)
Patch Set: rebase and address feedback Created 4 years, 3 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: content/child/child_process.cc
diff --git a/content/child/child_process.cc b/content/child/child_process.cc
index 9805c062f55c1872eb540abc0a029d8e32a72775..9bd52cb03a85df47761240a6de1e25752c9612cd 100644
--- a/content/child/child_process.cc
+++ b/content/child/child_process.cc
@@ -103,6 +103,14 @@ void ChildProcess::ReleaseProcess() {
main_thread_->OnProcessFinalRelease();
}
+#if defined(OS_LINUX)
+void ChildProcess::SetIOThreadPriority(
+ base::ThreadPriority io_thread_priority) {
+ DCHECK(main_thread_.get());
Tom Sepez 2016/09/19 22:54:04 DCHECK doesn't buy us much, we'll segv in the next
reveman 2016/09/19 23:14:22 Makes sense. Done.
+ main_thread_->SetThreadPriority(io_thread_.GetThreadId(), io_thread_priority);
+}
+#endif
+
ChildProcess* ChildProcess::current() {
return g_lazy_tls.Pointer()->Get();
}

Powered by Google App Engine
This is Rietveld 408576698