mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-24 03:30:52 +08:00
use ref callback
This commit is contained in:
parent
e69c0e648c
commit
eb8e39d897
@ -346,7 +346,7 @@ public:
|
||||
return it->second;
|
||||
}
|
||||
|
||||
void for_each(std::function<void(const std::string&, const Pointer&)> cb) {
|
||||
void for_each(const std::function<void(const std::string&, const Pointer&)>& cb) {
|
||||
std::lock_guard<std::recursive_mutex> lck(_mtx);
|
||||
auto it = _map.begin();
|
||||
while (it != _map.end()) {
|
||||
|
Loading…
Reference in New Issue
Block a user