| 64 | } |
| 65 | void unlock() { bthread_mutex_unlock(&_mutex); } |
| 66 | bool try_lock() { return 0 == bthread_mutex_trylock(&_mutex); } |
| 67 | bool timed_lock(const struct timespec* abstime) { |
| 68 | return !bthread_mutex_timedlock(&_mutex, abstime); |
| 69 | } |
no test coverage detected