Package icyllis.arc3d.engine
Class ReleaseCallback
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.engine.ReleaseCallback
- All Implemented Interfaces:
RefCounted
Ref-counted object that calls a callback from its destructor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
Override this method to invoke de-allocation of the underlying resource.abstract void
invoke()
This callback is invoked when the resource is released.
-
Constructor Details
-
ReleaseCallback
public ReleaseCallback()
-
-
Method Details
-
deallocate
protected final void deallocate()Description copied from class:RefCnt
Override this method to invoke de-allocation of the underlying resource.- Specified by:
deallocate
in classRefCnt
-
invoke
public abstract void invoke()This callback is invoked when the resource is released.
-