(&self, mutex: Arc<dyn Mutex>)
| 48 | } |
| 49 | |
| 50 | pub fn wait_with_mutex(&self, mutex: Arc<dyn Mutex>) { |
| 51 | mutex.unlock(); |
| 52 | self.inner.exclusive_session(|inner| { |
| 53 | inner.wait_queue.push_back(current_task().unwrap()); |
| 54 | }); |
| 55 | block_current_and_run_next(); |
| 56 | mutex.lock(); |
| 57 | } |
| 58 | } |
no test coverage detected