Bug #14807 ยป 0001-Initialize-condattr_monotonic-via-pthread_condattr_i.patch
| 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
|
||