Codebase list fstrm / b281b89
Use CLOCK_REALTIME by default for pthread_cond_timedwait() deadline. Only use a a pthread-specific clockid to calculated deadline if pthread_condattr_setclock() was available to set the corresponding clockid attribute on the condition. Chris Mikkelson authored 7 years ago reedjc committed 7 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
611611
612612 struct timespec ts;
613613 #if HAVE_CLOCK_GETTIME
614 #if HAVE_PTHREAD_CONDATTR_SETCLOCK
614615 int rv = clock_gettime(iothr->clkid_pthread, &ts);
616 #else
617 int rv = clock_gettime(CLOCK_REALTIME, &ts);
618 #endif
615619 assert(rv == 0);
616620 #else
617621 my_gettime(-1, &ts);