| 72 | } |
| 73 | |
| 74 | std::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 | |
| 82 | EXPORT_C_FUNC XResult HwCommandCreateCallback(HwCommandHandle *hw_cmd, |
| 83 | LaunchCallback launch, void *data) |
nothing calls this directly
no outgoing calls
no test coverage detected