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

Unified Diff: content/child/child_thread_impl.cc

Issue 2334533002: base: Move renderer threads to the appropriate cpuset. (Closed)
Patch Set: v3 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_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 8fa0804beb1aee275d7999b4907a34e1915a3307..20e26ca7c143e348fa4ae0c65e395e3abc70bf91 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -749,6 +749,13 @@ std::unique_ptr<base::SharedMemory> ChildThreadImpl::AllocateSharedMemory(
return shared_buf;
}
+void ChildThreadImpl::SetThreadPriority(base::PlatformThreadId id,
+ base::ThreadPriority priority) {
+#if defined(OS_LINUX)
+ Send(new ChildProcessHostMsg_SetThreadPriority(id, priority));
+#endif
+}
+
bool ChildThreadImpl::OnMessageReceived(const IPC::Message& msg) {
// Resource responses are sent to the resource dispatcher.
if (resource_dispatcher_->OnMessageReceived(msg))

Powered by Google App Engine
This is Rietveld 408576698