| 849 | |
| 850 | using NodeFn = std::function<void(CNode*)>; |
| 851 | void ForEachNode(const NodeFn& func) |
| 852 | { |
| 853 | LOCK(m_nodes_mutex); |
| 854 | for (auto&& node : m_nodes) { |
| 855 | if (NodeFullyConnected(node)) |
| 856 | func(node); |
| 857 | } |
| 858 | }; |
| 859 | |
| 860 | void ForEachNode(const NodeFn& func) const |
| 861 | { |
no outgoing calls