Project

General

Profile

Bug #14807 ยป 0001-Initialize-condattr_monotonic-via-pthread_condattr_i.patch

jeremyevans0 (Jeremy Evans), 06/01/2018 08:48 PM

View differences:

thread_pthread.c
{
#if defined(HAVE_PTHREAD_CONDATTR_SETCLOCK)
if (condattr_monotonic) {
int r = pthread_condattr_setclock(condattr_monotonic, CLOCK_MONOTONIC);
int r = pthread_condattr_init(condattr_monotonic);
if (r == 0) {
r = pthread_condattr_setclock(condattr_monotonic, CLOCK_MONOTONIC);
}
if (r) condattr_monotonic = NULL;
}
#endif
    (1-1/1)