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