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

Method Add

preempt/src/hal/hw_command.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54std::unordered_map<HwCommandHandle, std::shared_ptr<HwCommand>> HwCommandManager::hw_cmds_;
55
56HwCommandHandle HwCommandManager::Add(std::shared_ptr<HwCommand> hw_cmd)
57{
58 std::lock_guard<std::mutex> lock(mtx_);
59 HwCommandHandle hw_cmd_h = hw_cmd->GetHandle();
60 hw_cmds_[hw_cmd_h] = hw_cmd;
61 return hw_cmd_h;
62}
63
64std::shared_ptr<HwCommand> HwCommandManager::Del(HwCommandHandle hw_cmd)
65{

Callers

nothing calls this directly

Calls 1

GetHandleMethod · 0.45

Tested by

no test coverage detected