| 31 | ~MultiQueueLock() { unlock(); } |
| 32 | void lock() { lock_impl(typename std::index_sequence_for<Queue...>{}); } |
| 33 | void unlock() { unlock_impl(typename std::index_sequence_for<Queue...>{}); } |
| 34 | |
| 35 | private: |
| 36 | template <size_t... Is> void lock_impl(std::index_sequence<Is...>) { std::lock(std::get<Is>(tuple_)->mutex_...); } |