MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / af_set_memory_manager

Function af_set_memory_manager

src/api/c/memory.cpp:415–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415af_err af_set_memory_manager(af_memory_manager mgr) {
416 try {
417 std::unique_ptr<MemoryManagerFunctionWrapper> newManager(
418 new MemoryManagerFunctionWrapper(mgr));
419 // Calls shutdown() on the existing memory manager, but does not free
420 // the associated handle, if there is one
421 detail::setMemoryManager(std::move(newManager));
422 }
423 CATCHALL;
424
425 return AF_SUCCESS;
426}
427
428af_err af_unset_memory_manager() {
429 try {

Callers 2

SetUpMethod · 0.50
TESTFunction · 0.50

Calls 1

setMemoryManagerFunction · 0.50

Tested by

no test coverage detected