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

Function post_op

test/bthread_semaphore_unittest.cpp:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void post_op(bthread_sem_t* rw, int64_t sleep_us) {
142 ASSERT_EQ(0, bthread_sem_post(rw));
143 if (0 != sleep_us) {
144 bthread_usleep(sleep_us);
145 }
146}
147
148typedef void (*OP)(bthread_sem_t* sem, int64_t sleep_us);
149

Callers

nothing calls this directly

Calls 2

bthread_sem_postFunction · 0.85
bthread_usleepFunction · 0.85

Tested by

no test coverage detected