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

Function do_timedwait

test/bthread_semaphore_unittest.cpp:84–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void* do_timedwait(void *arg) {
85 struct timespec t = { -2, 0 };
86 EXPECT_EQ(ETIMEDOUT, bthread_sem_timedwait((bthread_sem_t*)arg, &t));
87 return NULL;
88}
89
90TEST(SemaphoreTest, timedwait) {
91 bthread_sem_t sem;

Callers

nothing calls this directly

Calls 1

bthread_sem_timedwaitFunction · 0.85

Tested by

no test coverage detected