Define priority for video threads

Video threads have soft realtime requirements that
must be met in order to maintain reliable frame delivery
even when the system is under high load. This CL
defines a new priority that can be used by video
threads, enabling them to be scheduled appropriately
relative to other system threads.

Change-Id: Idd57207e30309dfdff24389db0acf107532f9e5a
related-to-bug:63898080
This commit is contained in:
Jeff Tinker 2017-09-07 16:14:07 -07:00
parent 8f63b6cfca
commit 17ffcc4280

View file

@ -55,6 +55,9 @@ enum {
/* ui service treads might want to run at a urgent display (uncommon) */ /* ui service treads might want to run at a urgent display (uncommon) */
ANDROID_PRIORITY_URGENT_DISPLAY = HAL_PRIORITY_URGENT_DISPLAY, ANDROID_PRIORITY_URGENT_DISPLAY = HAL_PRIORITY_URGENT_DISPLAY,
/* all normal video threads */
ANDROID_PRIORITY_VIDEO = -10,
/* all normal audio threads */ /* all normal audio threads */
ANDROID_PRIORITY_AUDIO = -16, ANDROID_PRIORITY_AUDIO = -16,