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

Unified Diff: content/child/child_process.cc

Issue 2334533002: base: Move renderer threads to the appropriate cpuset. (Closed)
Patch Set: 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..c0792b20792f1547fb4335e170a5a7b240d6511f 100644
--- a/content/child/child_process.cc
+++ b/content/child/child_process.cc
@@ -103,6 +103,12 @@ void ChildProcess::ReleaseProcess() {
main_thread_->OnProcessFinalRelease();
}
+void ChildProcess::SetIOThreadAffinity(
+ base::ThreadPriority io_thread_priority) {
+ DCHECK(main_thread_.get());
+ main_thread_->SetThreadAffinity(io_thread_.GetThreadId(), io_thread_priority);
+}
+
ChildProcess* ChildProcess::current() {
return g_lazy_tls.Pointer()->Get();
}

Powered by Google App Engine
This is Rietveld 408576698