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

Method release

valdi_core/src/valdi_core/cpp/Utils/ObjectPool.hpp:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 Cleanup _cleanUpFunc;
87
88 void release() {
89 if (_pool != nullptr) {
90 _cleanUpFunc(_value);
91 _pool->add(std::move(_value));
92 _pool = nullptr;
93 }
94 }
95};
96
97template<typename T>

Callers 2

toStdLockMethod · 0.45
toValdiLockMethod · 0.45

Calls 1

addMethod · 0.65

Tested by

no test coverage detected