| 62 | } |
| 63 | |
| 64 | std::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 | |
| 74 | std::shared_ptr<HwCommand> HwCommandManager::Get(HwCommandHandle hw_cmd) |
| 75 | { |
nothing calls this directly
no outgoing calls
no test coverage detected