| 33 | } |
| 34 | |
| 35 | void condition_variable_debug::notify_one() |
| 36 | { |
| 37 | // make sure signaler is holding the waiter's lock. |
| 38 | ceph_assert(waiter_mutex == nullptr || |
| 39 | waiter_mutex->is_locked()); |
| 40 | if (int r = pthread_cond_signal(&cond); r != 0) { |
| 41 | throw std::system_error(r, std::generic_category()); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | void condition_variable_debug::notify_all(bool sloppy) |
| 46 | { |