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

Unified Diff: base/threading/thread.h

Issue 12741012: base: Support setting thread priorities generically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove static initializers. Created 7 years, 7 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 | « base/threading/platform_thread_win.cc ('k') | base/threading/thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/thread.h
diff --git a/base/threading/thread.h b/base/threading/thread.h
index cf1a86da4d39e374c066c7c090dd14b8c17ae7d2..15f73a02ea6d960ffc6dd9cebeedfbe7f63db565 100644
--- a/base/threading/thread.h
+++ b/base/threading/thread.h
@@ -142,6 +142,9 @@ class BASE_EXPORT Thread : PlatformThread::Delegate {
// Returns true if the thread has been started, and not yet stopped.
bool IsRunning() const;
+ // Sets the thread priority. The thread must already be started.
+ void SetPriority(ThreadPriority priority);
+
protected:
// Called just prior to starting the message loop
virtual void Init() {}
« no previous file with comments | « base/threading/platform_thread_win.cc ('k') | base/threading/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698