MCPcopy Create free account
hub / github.com/ElementsProject/elements / CleanupIteratorState

Function CleanupIteratorState

src/leveldb/db/db_impl.cc:1061–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059};
1060
1061static void CleanupIteratorState(void* arg1, void* arg2) {
1062 IterState* state = reinterpret_cast<IterState*>(arg1);
1063 state->mu->Lock();
1064 state->mem->Unref();
1065 if (state->imm != nullptr) state->imm->Unref();
1066 state->version->Unref();
1067 state->mu->Unlock();
1068 delete state;
1069}
1070
1071} // anonymous namespace
1072

Callers

nothing calls this directly

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
UnrefMethod · 0.45

Tested by

no test coverage detected