am 160edb36: Add ability to guard a thread against setting its own prio to bg
Merge commit '160edb3645f8b7012bab70ae6e6e8c4a5733082b' into gingerbread-plus-aosp * commit '160edb3645f8b7012bab70ae6e6e8c4a5733082b': Add ability to guard a thread against setting its own prio to bg
This commit is contained in:
@@ -625,6 +625,15 @@ public class Process {
|
||||
public static final native void setThreadPriority(int tid, int priority)
|
||||
throws IllegalArgumentException, SecurityException;
|
||||
|
||||
/**
|
||||
* Call with 'false' to cause future calls to {@link #setThreadPriority(int)} to
|
||||
* throw an exception if passed a background-level thread priority. This is only
|
||||
* effective if the JNI layer is built with GUARD_THREAD_PRIORITY defined to 1.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public static final native void setCanSelfBackground(boolean backgroundOk);
|
||||
|
||||
/**
|
||||
* Sets the scheduling group for a thread.
|
||||
* @hide
|
||||
|
||||
Reference in New Issue
Block a user