From 9410f98e78622d962b3fb1c520af53d5351a65c5 Mon Sep 17 00:00:00 2001 From: San Mehat Date: Tue, 8 Sep 2009 20:28:35 -0700 Subject: [PATCH] Process: Add support for using scheduler policies instead of cgroups. Preference is given to cgroups if available. Signed-off-by: San Mehat --- include/utils/threads.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/utils/threads.h b/include/utils/threads.h index 0fc533f95..f5304f72b 100644 --- a/include/utils/threads.h +++ b/include/utils/threads.h @@ -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 *);