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

Method HwCommand

preempt/src/hal/hw_command.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace xsched::preempt;
8
9HwCommand::HwCommand(XCommandProperties props): XCommand(kCommandTypeHardware, props)
10{
11 this->AddStateListener([this](XCommandState state) {
12 if (state < kCommandStateCompleted) return;
13 auto lock = this->GetLock();
14 this->xqueue_ = nullptr; // break reference and allow XQueue to be destroyed
15 });
16}
17
18void HwCommand::Wait()
19{

Callers

nothing calls this directly

Calls 2

AddStateListenerMethod · 0.80
GetLockMethod · 0.80

Tested by

no test coverage detected