MCPcopy Create free account
hub / github.com/caozhiyi/CppNet / RemoveFunc

Method RemoveFunc

test/rpc/FuncThread.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38bool 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
48CommonFunc CFuncThread::FindFunc(const std::string& name) {
49 std::unique_lock<std::mutex> lock(_mutex);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected