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:
San Mehat 2009-09-08 20:28:35 -07:00 committed by Alex Ray
parent 51ce3ad760
commit 7089ab8b38

View file

@ -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 *);