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

Unified Diff: content/child/child_thread_impl.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_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 29454b64e1ab12feba98ce80e1d88bb66093b504..22277efed0a2c3ec2ee03746e433bab96daba99f 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -731,6 +731,11 @@ std::unique_ptr<base::SharedMemory> ChildThreadImpl::AllocateSharedMemory(
return shared_buf;
}
+void ChildThreadImpl::SetThreadAffinity(base::PlatformThreadId id,
+ base::ThreadPriority priority) {
+ Send(new ChildProcessHostMsg_SetThreadAffinity(id, priority));
+}
+
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