diff options
author | Mathias Agopian <mathias@google.com> | 2011-08-10 19:40:24 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-10 19:40:24 -0700 |
commit | 8968195b197504b290451e136f2a01757ae1430c (patch) | |
tree | 8451017be19ef590cf453d591797f9881da2ccae /include | |
parent | e4b10e9f7ff1e0f51479a40b938474928d329dcf (diff) | |
parent | 5c9be402a4d934b678fe6609b6cc4d488d6ddaa4 (diff) | |
download | system_core-8968195b197504b290451e136f2a01757ae1430c.zip system_core-8968195b197504b290451e136f2a01757ae1430c.tar.gz system_core-8968195b197504b290451e136f2a01757ae1430c.tar.bz2 |
Merge "Add a priority constant in to the graphics HAL header"
Diffstat (limited to 'include')
-rw-r--r-- | include/system/graphics.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/system/graphics.h b/include/system/graphics.h index d39bd4e..77cd337 100644 --- a/include/system/graphics.h +++ b/include/system/graphics.h @@ -19,6 +19,20 @@ __BEGIN_DECLS +/* + * If the HAL needs to create service threads to handle graphics related + * tasks, these threads need to run at HAL_PRIORITY_URGENT_DISPLAY priority + * if they can block the main rendering thread in any way. + * + * the priority of the current thread can be set with: + * + * #include <sys/resource.h> + * setpriority(PRIO_PROCESS, 0, HAL_PRIORITY_URGENT_DISPLAY); + * + */ + +#define HAL_PRIORITY_URGENT_DISPLAY (-8) + /** * pixel format definitions */ |