mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-11 04:27:56 -05:00
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:
parent
b220f85790
commit
a75cea96fb
11 changed files with 157 additions and 238 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue