| 36 | } |
| 37 | |
| 38 | bool CFuncThread::RemoveFunc(const std::string& name) { |
| 39 | std::unique_lock<std::mutex> lock(_mutex); |
| 40 | auto iter = _func_map.find(name); |
| 41 | if (iter != _func_map.end()) { |
| 42 | _func_map.erase(iter); |
| 43 | return true; |
| 44 | } |
| 45 | return false; |
| 46 | } |
| 47 | |
| 48 | CommonFunc CFuncThread::FindFunc(const std::string& name) { |
| 49 | std::unique_lock<std::mutex> lock(_mutex); |
nothing calls this directly
no outgoing calls
no test coverage detected