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

Method Del

preempt/src/hal/hw_command.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64std::shared_ptr<HwCommand> HwCommandManager::Del(HwCommandHandle hw_cmd)
65{
66 std::lock_guard<std::mutex> lock(mtx_);
67 auto it = hw_cmds_.find(hw_cmd);
68 if (it == hw_cmds_.end()) return nullptr;
69 std::shared_ptr<HwCommand> hw_cmd_shptr = it->second;
70 hw_cmds_.erase(it);
71 return hw_cmd_shptr;
72}
73
74std::shared_ptr<HwCommand> HwCommandManager::Get(HwCommandHandle hw_cmd)
75{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected