diff options
author | San Mehat <san@google.com> | 2009-09-08 20:28:35 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-09-10 15:09:38 -0700 |
commit | 9410f98e78622d962b3fb1c520af53d5351a65c5 (patch) | |
tree | a418bc34575e74fbc48bf278058a61a4b2de5f73 | |
parent | 476a3aef5e133756b773f8946251747d26b787f2 (diff) | |
download | frameworks_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>
-rw-r--r-- | include/utils/threads.h | 5 |
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 *); |