]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
wrappers: Implemented correctly for Darwin.
authormacrule <562520+macrule@users.noreply.github.com>
Wed, 29 Nov 2017 17:18:53 +0000 (18:18 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 10 Dec 2017 15:14:08 +0000 (16:14 +0100)
commit040ac74ad2a4e4d66f4afbb6690fb217f7538ba0
treefffe8bde95152349f3683c745c00b86daf91807a
parent4d1d2d8ff779f19cb14ac3df274444f30f22e03e
wrappers: Implemented correctly for Darwin.

pthread_cond_timedwait() is not usable on Darwin, because it cannot be configured to use the monotonic clock. So instead the relative pthread_cond_timedwait_relative_np() is used with a relative time to wait for.

Only tvhthread_renice() is missing, but there seems to be currently no way on Darwin or FreeBSD to implement per-thread prioritization. The #warning is good, but it breaks with the default -Werror compile flag.
src/wrappers.c