38bool QMutexPrivate::wait(QDeadlineTimer timeout)
41 if (timeout.isForever()) {
43 errorCode = sem_wait(&semaphore);
44 }
while (errorCode && errno == EINTR);
48 auto tp = timeout.deadline<
std::chrono::system_clock>();
49 timespec ts = durationToTimespec(tp.time_since_epoch());
50 errorCode = sem_timedwait(&semaphore, &ts);
51 }
while (errorCode && errno == EINTR);
53 if (errorCode && errno == ETIMEDOUT)