loop: pass spa_dict to *_loop_new

Make the thread_loop alloc its own loop by default to simplify
some core. Add extra new_full method to pass a custom pw_loop.
Make other loop implementations ready to support custom loops
if we want that later.
This commit is contained in:
Wim Taymans 2019-12-13 11:34:25 +01:00
parent 828bd30879
commit 698ab911c3
21 changed files with 215 additions and 192 deletions

View file

@ -276,6 +276,7 @@ struct pw_data_loop {
struct spa_source *event;
pthread_t thread;
unsigned int created:1;
unsigned int running:1;
};
@ -288,6 +289,7 @@ struct pw_main_loop {
struct spa_hook_list listener_list;
struct spa_source *event;
unsigned int created:1;
unsigned int running:1;
};