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

Method DropAll

preempt/src/xqueue/command_buffer.cpp:120–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void CommandBuffer::DropAll()
121{
122 std::lock_guard<std::mutex> lock(mtx_);
123 for (auto &xcmd : cmds_) xcmd->SetState(kCommandStateCompleted);
124 cmds_.clear();
125}
126
127std::shared_ptr<XQueueWaitAllCommand> CommandBuffer::EnqueueXQueueWaitAllCommand()
128{

Callers 1

ResumeMethod · 0.80

Calls 1

SetStateMethod · 0.80

Tested by

no test coverage detected