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

Function sem_poster

test/bthread_semaphore_unittest.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void* sem_poster(void* arg) {
35 bthread_usleep(10 * 1000);
36 auto sem = (bthread_sem_t*)arg;
37 for (size_t i = 0; i < SEM_COUNT; ++i) {
38 bthread_sem_post(sem);
39 }
40 return NULL;
41}
42
43TEST(SemaphoreTest, sanity) {
44 bthread_sem_t sem;

Callers

nothing calls this directly

Calls 2

bthread_usleepFunction · 0.85
bthread_sem_postFunction · 0.85

Tested by

no test coverage detected