data-loop: use pthread_cancel to stop thread

Use pthread_cancel to terminate the data threads. We need this for
jack support but it's generally useful for a data thread.
This commit is contained in:
Wim Taymans 2020-01-16 13:27:52 +01:00
parent bac6bf090c
commit 940aba8623
2 changed files with 17 additions and 26 deletions

View file

@ -282,8 +282,6 @@ struct pw_data_loop {
struct spa_hook_list listener_list;
struct spa_source *event;
pthread_t thread;
unsigned int created:1;
unsigned int running:1;