MCPcopy Create free account
hub / github.com/cameron314/readerwriterqueue / verify

Method verify

tests/unittests/unittests.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33private:
34 void verify()
35 {
36 if (copied) return;
37 if (id != _last_destroyed_id() + 1) {
38 _destroyed_in_order() = false;
39 }
40 _last_destroyed_id() = id;
41 ++_destroy_count();
42 }
43
44public:
45 static void reset() { _destroy_count() = 0; _id() = 0; _destroyed_in_order() = true; _last_destroyed_id() = -1; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected