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

Unified Diff: base/threading/platform_thread.h

Issue 1739993004: content: Implement dynamic priorities for raster threads. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: preparing for checkin. Created 4 years, 9 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 e62eb2b2c18475adeeb902f6b248e023dae69b2c..90074e201947ef52a432f7de9a8e638263ab6c34 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -191,6 +191,13 @@ class BASE_EXPORT PlatformThread {
static ThreadPriority GetCurrentThreadPriority();
+ // Sets priority of child thread in current process. If called from other
+ // process, this function has no effect. If successful, returns true.
+ static bool SetChildThreadPriorityInCurrentProcess(
+ PlatformThreadHandle thread_handle,
+ PlatformThreadId tid,
+ ThreadPriority priority);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread);
};

Powered by Google App Engine
This is Rietveld 408576698