ServiceController增加size方法
This commit is contained in:
parent
7e82c970d4
commit
31792dcc0f
|
|
@ -323,6 +323,11 @@ public:
|
|||
return _map.erase(key);
|
||||
}
|
||||
|
||||
size_t size() {
|
||||
std::lock_guard<std::recursive_mutex> lck(_mtx);
|
||||
return _map.size();
|
||||
}
|
||||
|
||||
Pointer find(const std::string &key) const {
|
||||
std::lock_guard<std::recursive_mutex> lck(_mtx);
|
||||
auto it = _map.find(key);
|
||||
|
|
|
|||
Loading…
Reference in New Issue