data-loop: add method to set custom thread-utils

So that the thread creation can be switched for this data loop.
This commit is contained in:
Wim Taymans 2022-03-29 10:49:37 +02:00
parent 90d755ab4c
commit 2180b6aa17
3 changed files with 30 additions and 2 deletions

View file

@ -483,6 +483,8 @@ struct pw_data_loop {
struct spa_hook_list listener_list;
struct spa_thread_utils *thread_utils;
pthread_t thread;
unsigned int cancel:1;
unsigned int created:1;