diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-04-27 09:18:14 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-04-27 09:18:14 -0700 |
commit | 3eab744d018924189b1b8f5530accd52e91213de (patch) | |
tree | f9002bced44ef10597b196f8c09b3f0f6843d9b3 /include | |
parent | 1fb758e94b5b9e342b6dc6452cb5bd7cf0cc4ed6 (diff) | |
parent | e9d376b801b7890b1ef5006ed55de4208e64bb63 (diff) | |
download | frameworks_base-3eab744d018924189b1b8f5530accd52e91213de.zip frameworks_base-3eab744d018924189b1b8f5530accd52e91213de.tar.gz frameworks_base-3eab744d018924189b1b8f5530accd52e91213de.tar.bz2 |
Merge change 376 into donut
* changes:
Add support for changing a threads scheduler group. Three groups are available (default, background non interactive, foreground boost). Setting a thread priority to PRIORITY_BACKGROUND will transparently change groups to background
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/threads.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/utils/threads.h b/include/utils/threads.h index 8d8d46a..b320915 100644 --- a/include/utils/threads.h +++ b/include/utils/threads.h @@ -79,6 +79,13 @@ enum { ANDROID_PRIORITY_LESS_FAVORABLE = +1, }; +enum { + ANDROID_TGROUP_DEFAULT = 0, + ANDROID_TGROUP_BG_NONINTERACT = 1, + ANDROID_TGROUP_FG_BOOST = 2, + ANDROID_TGROUP_MAX = ANDROID_TGROUP_FG_BOOST, +}; + // Create and run a new thread. extern int androidCreateThread(android_thread_func_t, void *); |