| 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 |
nothing calls this directly
no test coverage detected