summaryrefslogtreecommitdiffstats
path: root/include/utils
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-09-08 20:28:35 -0700
committerSan Mehat <san@google.com>2009-09-10 15:09:38 -0700
commit9410f98e78622d962b3fb1c520af53d5351a65c5 (patch)
treea418bc34575e74fbc48bf278058a61a4b2de5f73 /include/utils
parent476a3aef5e133756b773f8946251747d26b787f2 (diff)
downloadframeworks_native-9410f98e78622d962b3fb1c520af53d5351a65c5.zip
frameworks_native-9410f98e78622d962b3fb1c520af53d5351a65c5.tar.gz
frameworks_native-9410f98e78622d962b3fb1c520af53d5351a65c5.tar.bz2
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>
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/threads.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/utils/threads.h b/include/utils/threads.h
index 0fc533f..f5304f7 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 *);