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

Method nativeFree

src/backend/cpu/memory.cpp:153–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void Allocator::nativeFree(void *ptr) {
154 AF_TRACE("nativeFree: {: >8} {}", " ", ptr);
155 // Make sure this pointer is not being used on the queue before freeing the
156 // memory.
157 getQueue().sync();
158 free(ptr); // NOLINT(hicpp-no-malloc)
159}
160} // namespace cpu
161} // namespace arrayfire

Callers 1

Calls 3

freeFunction · 0.85
getQueueFunction · 0.50
syncMethod · 0.45

Tested by

no test coverage detected