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

Method releaseDisposables

valdi/src/valdi/runtime/Context/Context.cpp:402–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402void Context::releaseDisposables() {
403 auto value = --_disposableRefCount;
404 if (value == 0) {
405 std::unique_lock<Mutex> guard(_mutex);
406 _disposables.dispose(guard);
407 }
408}
409
410void Context::setParent(const Ref<Context>& parentContext) {
411 _parentContext = parentContext;

Callers 7

~JSContextWrapperMethod · 0.80
TESTFunction · 0.80
withJsContextFunction · 0.80
releaseMethod · 0.80
deassociateContextMethod · 0.80
teardownMethod · 0.80

Calls 1

disposeMethod · 0.65

Tested by 2

~JSContextWrapperMethod · 0.64
TESTFunction · 0.64