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

Function bthread_sem_timedwait

src/bthread/semaphore.cpp:161–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161int bthread_sem_timedwait(bthread_sem_t* sem, const struct timespec* abstime) {
162 return bthread::bthread_sem_wait_impl(sem, abstime);
163}
164
165int bthread_sem_post(bthread_sem_t* sem) {
166 return bthread::bthread_sem_post(sem, 1);

Callers 3

do_timedwaitFunction · 0.85
rwlock_rdlock_implFunction · 0.85
rwlock.cppFile · 0.85

Calls 1

bthread_sem_wait_implFunction · 0.85

Tested by 1

do_timedwaitFunction · 0.68