Function TVMFFIGetCustomAllocator

Function TVMFFIGetCustomAllocator#

Function Documentation#

TVMFFICustomAllocator *TVMFFIGetCustomAllocator(void)#

Get the process-wide custom allocator.

Note

TVMFFIGetCustomAllocator always returns a valid allocator and can be overridden by TVMFFISetCustomAllocator.

Note

Not synchronized against a concurrent TVMFFISetCustomAllocator. The allocator is expected to be installed once during frontend initialization, before objects are created concurrently; reading it afterwards from multiple threads is safe.

Returns:

The currently registered allocator (never NULL).