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