pulse-server: use the new timer-queue for timeouts

Use the timer queue for scheduling stream and object data timeouts.

This avoids allocating timerfds for these timeouts and the timer queue
can handle many timeouts more efficiently.
This commit is contained in:
Wim Taymans 2025-09-18 13:55:43 +02:00
parent 38cb14d39d
commit ca713c08ee
5 changed files with 14 additions and 32 deletions

View file

@ -5524,6 +5524,7 @@ struct pw_protocol_pulse *pw_protocol_pulse_new(struct pw_context *context,
impl->main_loop = pw_context_get_main_loop(context);
impl->work_queue = pw_context_get_work_queue(context);
impl->timer_queue = pw_context_get_timer_queue(context);
if (props == NULL)
props = pw_properties_new(NULL, NULL);