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

Method Get

preempt/src/hal/hw_command.cpp:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74std::shared_ptr<HwCommand> HwCommandManager::Get(HwCommandHandle hw_cmd)
75{
76 std::lock_guard<std::mutex> lock(mtx_);
77 auto it = hw_cmds_.find(hw_cmd);
78 if (it == hw_cmds_.end()) return nullptr;
79 return it->second;
80}
81
82EXPORT_C_FUNC XResult HwCommandCreateCallback(HwCommandHandle *hw_cmd,
83 LaunchCallback launch, void *data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected