Memory Management
With the CxAllocator
interface UCX provides the possibility to use custom allocator functions for different purposes. Many UCX functions support the use of specialized allocators or provide a second function suffixed with _a
.
For convenience, functions that are not explicitly requesting an allocator - like e.g. cx_strdup_a()
- also accept NULL
as an allocator, in which case the cxDefaultAllocator
and stdlib functions are used.
Additionally, UCX also provides a memory pool implementation of the allocator interface.
Last modified: 06 April 2025