Vasil Dimov 75e8bf55f5
net: dedup and RAII-fy the creation of a copy of CConnman::vNodes
The following pattern was duplicated in CConnman:

```cpp
lock
create a copy of vNodes, add a reference to each one
unlock
... use the copy ...
lock
release each node from the copy
unlock
```

Put that code in a RAII helper that reduces it to:

```cpp
create snapshot "snap"
... use the copy ...
// release happens when "snap" goes out of scope
```
2021-11-18 13:29:23 +01:00
..
2021-09-10 11:18:58 +08:00
2021-10-16 13:35:57 -07:00
2021-09-29 14:10:29 +02:00
2021-07-30 11:21:51 +02:00
2021-09-16 21:16:39 +09:00
2021-10-11 21:45:49 +10:00
2021-10-05 11:11:18 +02:00
2021-09-11 10:47:02 +03:00
2021-04-06 14:50:17 +08:00
2021-08-23 21:38:34 -04:00
2021-09-29 18:46:30 +02:00
2021-08-20 16:59:41 +02:00