mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
deps-libff: Abort timer thread instead of cancelling
This commit is contained in:
Vendored
+5
-1
@@ -99,7 +99,11 @@ void ff_timer_free(struct ff_timer *timer)
|
||||
|
||||
assert(timer != NULL);
|
||||
|
||||
pthread_cancel(timer->timer_thread);
|
||||
pthread_mutex_lock(&timer->mutex);
|
||||
timer->abort = true;
|
||||
pthread_cond_signal(&timer->cond);
|
||||
pthread_mutex_unlock(&timer->mutex);
|
||||
|
||||
pthread_join(timer->timer_thread, &thread_result);
|
||||
|
||||
pthread_mutex_destroy(&timer->mutex);
|
||||
|
||||
Reference in New Issue
Block a user