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:
parent
8f63b6cfca
commit
17ffcc4280
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue