loop: remove the eventfd to stop the loop

We can just as well use _invoke to schedule a task in the context
of the loop.
This commit is contained in:
Wim Taymans 2022-01-27 15:07:38 +01:00
parent 3256c6e5e7
commit 5ab031b472
3 changed files with 18 additions and 35 deletions

View file

@ -472,9 +472,9 @@ struct pw_data_loop {
struct pw_loop *loop;
struct spa_hook_list listener_list;
struct spa_source *event;
pthread_t thread;
unsigned int cancel:1;
unsigned int created:1;
unsigned int running:1;
};
@ -486,7 +486,6 @@ struct pw_main_loop {
struct pw_loop *loop;
struct spa_hook_list listener_list;
struct spa_source *event;
unsigned int created:1;
unsigned int running:1;