MCPcopy Create free account
hub / github.com/XTXMarkets/ternfs / ErrorCount

Method ErrorCount

cpp/core/ErrorCount.hpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 std::vector<std::atomic<uint64_t>> count;
16
17 ErrorCount() : count(maxTernError) {
18 for (int i = 0; i < count.size(); i++) {
19 count[i].store(0);
20 }
21 }
22
23 void add(TernError err) {
24 count[(int)err]++;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected