module-rt: Use magic value for user config prio

Instead of having the context priority hardcoded at 88.
This commit is contained in:
Robbert van der Helm 2022-01-16 16:49:03 +01:00
parent 674858cd6e
commit 4419baec45
3 changed files with 10 additions and 2 deletions

View file

@ -68,7 +68,9 @@ struct spa_thread_utils_methods {
/** get realtime priority range for threads created with \a props */
int (*get_rt_range) (void *data, const struct spa_dict *props, int *min, int *max);
/** acquire realtime priority */
/** acquire realtime priority, a priority of -1 refers to the priority
* configured in the realtime module
*/
int (*acquire_rt) (void *data, struct spa_thread *thread, int priority);
/** drop realtime priority */
int (*drop_rt) (void *data, struct spa_thread *thread);