MCPcopy Create free account
hub / github.com/apache/brpc / wait_until

Method wait_until

src/bthread/condition_variable.h:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 int wait_until(std::unique_lock<bthread::Mutex>& lock,
93 timespec duetime) {
94 const int rc = bthread_cond_timedwait(
95 &_cond, lock.mutex()->native_handler(), &duetime);
96 return rc == ETIMEDOUT ? ETIMEDOUT : 0;
97 }
98
99 int wait_until(std::unique_lock<bthread_mutex_t>& lock,
100 timespec duetime) {

Callers

nothing calls this directly

Calls 3

bthread_cond_timedwaitFunction · 0.85
native_handlerMethod · 0.45
mutexMethod · 0.45

Tested by

no test coverage detected