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

Method RWLock

src/bthread/rwlock.h:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 typedef bthread_rwlock_t* native_handler_type;
34
35 RWLock() {
36 int rc = bthread_rwlock_init(&_rwlock, NULL);
37 if (rc) {
38 throw std::system_error(std::error_code(rc, std::system_category()),
39 "RWLock constructor failed");
40 }
41 }
42
43 ~RWLock() {
44 CHECK_EQ(0, bthread_rwlock_destroy(&_rwlock));

Callers

nothing calls this directly

Calls 1

bthread_rwlock_initFunction · 0.85

Tested by

no test coverage detected