| 90 | } |
| 91 | |
| 92 | int wait_until(std::unique_lock<bthread::Mutex>& lock, |
| 93 | timespec duetime) { |
| 94 | const int rc = bthread_cond_timedwait( |
| 95 | &_cond, lock.mutex()->native_handler(), &duetime); |
| 96 | return rc == ETIMEDOUT ? ETIMEDOUT : 0; |
| 97 | } |
| 98 | |
| 99 | int wait_until(std::unique_lock<bthread_mutex_t>& lock, |
| 100 | timespec duetime) { |
nothing calls this directly
no test coverage detected