| 26 | } |
| 27 | |
| 28 | void Stats::merge(Stats & from) |
| 29 | { |
| 30 | std::scoped_lock lock(mutex, from.mutex); |
| 31 | |
| 32 | errors += from.errors; |
| 33 | watches_fired += from.watches_fired; |
| 34 | read_collector.merge(from.read_collector); |
| 35 | write_collector.merge(from.write_collector); |
| 36 | } |
| 37 | |
| 38 | void Stats::extractInto(Stats & target) |
| 39 | { |
no outgoing calls
no test coverage detected