MCPcopy Create free account
hub / github.com/chen3feng/toft / TimedWait

Method TimedWait

system/threading/condition_variable.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55bool ConditionVariable::TimedWait(int64_t timeout_in_ms)
56{
57 timespec ts;
58 RelativeMilliSecondsToAbsolute(timeout_in_ms, &ts);
59 return TOFT_CHECK_PTHREAD_TIMED_ERROR(
60 pthread_cond_timedwait(&m_cond, &m_mutex->m_mutex, &ts));
61}
62
63} // namespace toft
64

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected