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

Unified Diff: base/threading/platform_thread.h

Issue 2334533002: base: Move renderer threads to the appropriate cpuset. (Closed)
Patch Set: use file thread 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.
Nico 2016/09/19 20:49:30 Maybe add some words on how this compares to the p
reveman 2016/09/19 21:43:39 Done.
+ static void SetThreadPriority(PlatformThreadId thread_id,
+ ThreadPriority priority);
+#endif
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread);
};

Powered by Google App Engine
This is Rietveld 408576698