darwin/thread: Ignore vlc_mutex_unlock failures
commit778f2203177a9a0de7ca11da600e39b06eb8093e
authorMarvin Scholz <epirat07@gmail.com>
Mon, 28 Oct 2019 17:24:44 +0000 (28 18:24 +0100)
committerThomas Guillem <thomas@gllm.fr>
Mon, 2 Dec 2019 13:22:24 +0000 (2 14:22 +0100)
tree336fdb6fef311466c23ab2bc9413702514cc6187
parent001ba0c9be5f3267182cde95c44dbfe22587031f
darwin/thread: Ignore vlc_mutex_unlock failures

macOS pthread implementation for pthread_cond_wait is buggy, causing
sometimes the mutex to not be locked when running thread cancellation
cleanup handlers.
This causes random failures of vlc_mutex_unlock, as the cancellation
cleanup handler does not hold a lock on the mutex in rare cases.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
src/darwin/thread.c