Process: Add support for using scheduler policies instead of cgroups.
Preference is given to cgroups if available. Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
parent
51ce3ad760
commit
7089ab8b38
1 changed files with 5 additions and 0 deletions
|
@ -90,6 +90,11 @@ enum {
|
|||
ANDROID_TGROUP_MAX = ANDROID_TGROUP_FG_BOOST,
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
SP_BACKGROUND = 0,
|
||||
SP_FOREGROUND = 1,
|
||||
} SchedPolicy;
|
||||
|
||||
// Create and run a new thread.
|
||||
extern int androidCreateThread(android_thread_func_t, void *);
|
||||
|
||||
|
|
Loading…
Reference in a new issue