mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-16 10:03:14 -07:00
Finish removing constantly changing stuff from controller.
This commit is contained in:
parent
a9ce773584
commit
718e1d6c08
5 changed files with 142 additions and 87 deletions
|
@ -107,6 +107,19 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
template<typename F>
|
||||
inline void eachId(F func)
|
||||
{
|
||||
Mutex::Lock _l(_networks_m);
|
||||
for(std::unordered_map<uint64_t,_NW>::const_iterator i(_networks.begin());i!=_networks.end();++i) {
|
||||
for(std::unordered_map< uint64_t,std::vector<uint8_t> >::const_iterator m(i->second.members.begin());m!=i->second.members.end();++m) {
|
||||
try {
|
||||
func(i->first,m->first);
|
||||
} catch ( ... ) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void threadMain()
|
||||
throw();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue