honor dont_fake_monotonic in experimental sem_clockwait() (addresses #390)

This commit is contained in:
Wolfgang Hommel
2022-05-16 19:20:33 +02:00
parent 859751e2cb
commit b61fade280

View File

@@ -1831,6 +1831,12 @@ int sem_clockwait(sem_t *sem, clockid_t clockid, const struct timespec *abstime)
int result;
struct timespec real_abstime, *real_abstime_pt;
if ((!fake_monotonic_clock) && (clockid == CLOCK_MONOTONIC))
{
DONT_FAKE_TIME(result = (*real_sem_clockwait)(sem, clockid, abstime));
return result;
}
/* sanity check */
if (abstime == NULL)
{