modules: port modules to timer-queue

Instead of using timerfd, use the context timer-queue to schedule
timeouts. This saves fds and removes some redundant code.

Make the rtp-source timeout and standby code a bit better by using
atomic operations.
This commit is contained in:
Wim Taymans 2025-10-15 16:57:24 +02:00
parent b220f85790
commit a75cea96fb
11 changed files with 157 additions and 238 deletions

View file

@ -19,6 +19,7 @@ struct avb_mrp;
struct impl {
struct pw_loop *loop;
struct pw_timer_queue *timer_queue;
struct pw_context *context;
struct spa_hook context_listener;
struct pw_core *core;
@ -61,7 +62,7 @@ struct server {
int ifindex;
struct spa_source *source;
struct spa_source *timer;
struct pw_timer timer;
struct spa_hook_list listener_list;