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

Unified Diff: base/threading/simple_thread.h

Issue 12741012: base: Support setting thread priorities generically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 8 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/simple_thread.h
diff --git a/base/threading/simple_thread.h b/base/threading/simple_thread.h
index df03ce1c8131e32144003989acb0eb4e5732381e..a7ac29194aa2413455567aea4fdf5cb51364016a 100644
--- a/base/threading/simple_thread.h
+++ b/base/threading/simple_thread.h
@@ -107,7 +107,7 @@ class BASE_EXPORT SimpleThread : public PlatformThread::Delegate {
// Only set priorities with a careful understanding of the consequences.
// This is meant for very limited use cases.
void SetThreadPriority(ThreadPriority priority) {
- PlatformThread::SetThreadPriority(thread_, priority);
+ PlatformThread::SetThreadPriority(thread_, tid(), priority);
}
private:

Powered by Google App Engine
This is Rietveld 408576698