MCPcopy Create free account
hub / github.com/XpuOS/xsched / ~AsyncXQueue

Method ~AsyncXQueue

preempt/src/xqueue/async_xqueue.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32AsyncXQueue::~AsyncXQueue()
33{
34 // If the XQueue is terminated, it should not be preempted.
35 terminated_.store(true);
36 this->Resume(true);
37
38 auto destroy_command = std::make_shared<XQueueDestroyCommand>();
39 cmd_buf_->Enqueue(destroy_command);
40 destroy_command->Wait();
41 SchedAgent::SendEvent(std::make_shared<XQueueDestroyEvent>(kHandle));
42}
43
44void AsyncXQueue::Submit(std::shared_ptr<HwCommand> hw_cmd)
45{

Callers

nothing calls this directly

Calls 3

ResumeMethod · 0.95
EnqueueMethod · 0.80
WaitMethod · 0.45

Tested by

no test coverage detected