MCPcopy Create free account
hub / github.com/Snapchat/Valdi / release

Method release

valdi/src/valdi/runtime/Utils/RefCountableAutoreleasePool.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void RefCountableAutoreleasePool::release(void* ptr) {
35 auto* current = tCurrent;
36 if (current != nullptr) {
37 current->append(ptr);
38 } else {
39 Valdi::unsafeBridgeRelease(ptr);
40 }
41}
42
43void RefCountableAutoreleasePool::append(void* ptr) {
44 // If our append will cause a reallocation, but we have some free spots available

Callers

nothing calls this directly

Calls 2

unsafeBridgeReleaseFunction · 0.85
appendMethod · 0.65

Tested by

no test coverage detected