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

Unified Diff: base/threading/platform_thread.h

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
« no previous file with comments | « no previous file | base/threading/platform_thread_linux.cc » ('j') | base/threading/platform_thread_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread.h
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
index 4c2db8aba78a1f817288bce6b11c1f29b2397b5c..257f788a7c7b6a2c510bbf4973bb2e57bf698ef6 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -205,6 +205,10 @@ class BASE_EXPORT PlatformThread {
static ThreadPriority GetCurrentThreadPriority();
+#if defined(OS_LINUX)
+ static void SetThreadAffinity(PlatformThreadId id, ThreadPriority priority);
+#endif
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread);
};
« no previous file with comments | « no previous file | base/threading/platform_thread_linux.cc » ('j') | base/threading/platform_thread_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698