MCPcopy Create free account
hub / github.com/apache/brpc / ~RWLockWrGuard

Method ~RWLockWrGuard

src/bthread/rwlock.h:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 : RWLockWrGuard(*rwlock.native_handler()) {}
142
143 ~RWLockWrGuard() {
144#ifndef NDEBUG
145 if (NULL != _rwlock) {
146 bthread_rwlock_unlock(_rwlock);
147 }
148#else
149 bthread_rwlock_unlock(_rwlock);
150#endif // NDEBUG
151 }
152
153 DISALLOW_COPY_AND_ASSIGN(RWLockWrGuard);
154

Callers

nothing calls this directly

Calls 1

bthread_rwlock_unlockFunction · 0.85

Tested by

no test coverage detected