MCPcopy Create free account
hub / github.com/XpuOS/xsched / WaitForNextIdle

Method WaitForNextIdle

preempt/src/xqueue/command_buffer.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void 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
22XQueueState CommandBuffer::GetXQueueState()
23{

Callers 1

SuspendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected