MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / InternalFinalizer

Method InternalFinalizer

src/hx/gc/Immix.cpp:2478–2487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2476
2477
2478InternalFinalizer::InternalFinalizer(hx::Object *inObj, finalizer inFinalizer)
2479{
2480 mValid = true;
2481 mObject = inObj;
2482 mFinalizer = inFinalizer;
2483
2484 // Ensure this survives generational collect
2485 std::lock_guard<std::mutex> lock(*gSpecialObjectLock);
2486 sgFinalizers->push(this);
2487}
2488
2489#ifdef HXCPP_VISIT_ALLOCS
2490void InternalFinalizer::Visit(VisitContext *__inCtx)

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected