| 12 | } |
| 13 | |
| 14 | void CommandBuffer::WaitForNextIdle() |
| 15 | { |
| 16 | std::unique_lock<std::mutex> lock(mtx_); |
| 17 | if (xq_state_ == kQueueStateIdle) return; |
| 18 | uint64_t current_idle_cnt = idle_cnt_; |
| 19 | while (current_idle_cnt == idle_cnt_) idle_cv_.wait(lock); |
| 20 | } |
| 21 | |
| 22 | XQueueState CommandBuffer::GetXQueueState() |
| 23 | { |