Open
Description
See #58737 and related PRs.
CLOCK_MONOTONIC
is available on ios 10+, but not pthread_condattr_setclock
. We disable the code on Apple platforms using BROKEN_CLOCK_SOURCE
in
runtime/src/mono/mono/utils/mono-os-mutex.h
Lines 39 to 41 in 4211dc4
We should look into using pthread_cond_timedwait
with a CLOCK_MONOTONIC
argument or alternatively enable clock_gettime
(supported by newer macOS/iOS releases) on Apple platforms.