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

Method RegisterCleanup

src/leveldb/table/iterator.cc:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void Iterator::RegisterCleanup(CleanupFunction func, void* arg1, void* arg2) {
27 assert(func != nullptr);
28 CleanupNode* node;
29 if (cleanup_head_.IsEmpty()) {
30 node = &cleanup_head_;
31 } else {
32 node = new CleanupNode();
33 node->next = cleanup_head_.next;
34 cleanup_head_.next = node;
35 }
36 node->function = func;
37 node->arg1 = arg1;
38 node->arg2 = arg2;
39}
40
41namespace {
42

Callers 3

BlockReaderMethod · 0.80
NewIteratorMethod · 0.80
NewInternalIteratorMethod · 0.80

Calls 1

IsEmptyMethod · 0.45

Tested by

no test coverage detected