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

Unified Diff: base/threading/platform_thread.h

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: base/threading/platform_thread.h
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
index 4c2db8aba78a1f817288bce6b11c1f29b2397b5c..70217946da01970d2c454ab337539a049f3bd3d8 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -205,6 +205,13 @@ class BASE_EXPORT PlatformThread {
static ThreadPriority GetCurrentThreadPriority();
+#if defined(OS_LINUX)
+ // Warning: Don't use this for a main thread because that will change the
+ // whole thread group's (i.e. process) priority.
+ static void SetThreadPriority(PlatformThreadId thread_id,
+ ThreadPriority priority);
+#endif
Avi (use Gerrit) 2016/09/16 22:26:29 You ifdef this to the platform, but don't ifdef an
reveman 2016/09/16 23:06:41 What other code are you referring to? I didn't ifd
Avi (use Gerrit) 2016/09/17 00:55:54 Yes, I'm referring to the RenderMessageFilter code
reveman 2016/09/17 09:13:36 Latest patch will ifdef all the code to linux only
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread);
};

Powered by Google App Engine
This is Rietveld 408576698