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

Function do_trywait

test/bthread_semaphore_unittest.cpp:105–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103};
104
105void* do_trywait(void *arg) {
106 auto trylock_args = (TryWaitArgs*)arg;
107 EXPECT_EQ(trylock_args->rc, bthread_sem_trywait(trylock_args->sem));
108 return NULL;
109}
110
111TEST(SemaphoreTest, trywait) {
112 bthread_sem_t sem;

Callers

nothing calls this directly

Calls 1

bthread_sem_trywaitFunction · 0.85

Tested by

no test coverage detected