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

Function write_op

test/bthread_rwlock_unittest.cpp:220–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void write_op(bthread_rwlock_t* rw, int64_t sleep_us) {
221 ASSERT_EQ(0, bthread_rwlock_wrlock(rw));
222 if (0 != sleep_us) {
223 bthread_usleep(sleep_us);
224 }
225 ASSERT_EQ(0, bthread_rwlock_unlock(rw));
226}
227
228typedef void (*OP)(bthread_rwlock_t* rw, int64_t sleep_us);
229

Callers

nothing calls this directly

Calls 3

bthread_rwlock_wrlockFunction · 0.85
bthread_usleepFunction · 0.85
bthread_rwlock_unlockFunction · 0.85

Tested by

no test coverage detected