MCPcopy Create free account
hub / github.com/apple/foundationdb / delref

Method delref

flow/WriteOnlySet.actor.cpp:166–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 mutable std::atomic<unsigned> _refCount = 1;
165 TestObject() { instanceCounter.fetch_add(1); }
166 void delref() const {
167 if (--_refCount == 0) {
168 delete this;
169 --instanceCounter;
170 }
171 }
172 void addref() const { ++_refCount; }
173};
174

Callers 3

eraseImplMethod · 0.45
replaceMethod · 0.45
copyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected