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

Function af_release_memory_manager

src/api/c/memory.cpp:403–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403af_err af_release_memory_manager(af_memory_manager handle) {
404 try {
405 // NB: does NOT reset the internal memory manager to be the default:
406 // af_unset_memory_manager_pinned must be used to fully-reset with a new
407 // AF default memory manager
408 delete static_cast<MemoryManager *>(handle);
409 }
410 CATCHALL;
411
412 return AF_SUCCESS;
413}
414
415af_err af_set_memory_manager(af_memory_manager mgr) {
416 try {

Callers 2

TearDownMethod · 0.50
TESTFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected