Commit 910e2082 authored by Felix Paul Kühne's avatar Felix Paul Kühne

darwin threads: add missing cancellation point

This solves timer cancellation issues on Darwin 11 and later

Thanks to Sean for the hint
parent ccd2a9a1
...@@ -355,6 +355,10 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex, ...@@ -355,6 +355,10 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex,
* For more details, see: https://devforums.apple.com/message/931605 * For more details, see: https://devforums.apple.com/message/931605
*/ */
/* according to POSIX standards, cond_timedwait should be a cancellation point
* Of course, Darwin does not care */
pthread_testcancel();
if (p_condvar->clock == VLC_CLOCK_MONOTONIC) { if (p_condvar->clock == VLC_CLOCK_MONOTONIC) {
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment