This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition for celixThreadCondition_timedwaitRelative.
Adjusting system clock between clock_gettime(CLOCK_REALTIME) and pthread_cond_timedwait may lead to unexpected long blocking. To fix it, we use CLOCK_MONOTONIC on platforms that support it, while on Mac OS which does not support CLOCK_MONOTONIC we have pthread_cond_timedwait_relative_np.
- Loading branch information
Showing 1 changed file with 20 additions and 7 deletions.