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); |
}; |