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
parent 476a3aef5e
commit 9410f98e78

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