diff options
| author | 2009-04-27 09:18:14 -0700 | |
|---|---|---|
| committer | 2009-04-27 09:18:14 -0700 | |
| commit | 9d206fa56f77ae6c32bf5144db4f95b0a6cfcb62 (patch) | |
| tree | 54b653d5f7084331e86ce50c72f5798450973c35 /include/utils | |
| parent | 4199d16d001b336730fbc3b834e4ffa253d77af8 (diff) | |
| parent | 046cda49f94d87b31553a6f34109a59e8e7a2994 (diff) | |
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/utils')
| -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 8d8d46a054..b3209156bc 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 *); |