61 /** |
61 /** |
62 * A function pointer to the allocators <code>malloc()</code> function. |
62 * A function pointer to the allocators <code>malloc()</code> function. |
63 * @see UcxAllocator |
63 * @see UcxAllocator |
64 */ |
64 */ |
65 typedef void*(*ucx_allocator_malloc)(void *pool, size_t n); |
65 typedef void*(*ucx_allocator_malloc)(void *pool, size_t n); |
|
66 |
66 /** |
67 /** |
67 * A function pointer to the allocators <code>calloc()</code> function. |
68 * A function pointer to the allocators <code>calloc()</code> function. |
68 * @see UcxAllocator |
69 * @see UcxAllocator |
69 */ |
70 */ |
70 typedef void*(*ucx_allocator_calloc)(void *pool, size_t n, size_t size); |
71 typedef void*(*ucx_allocator_calloc)(void *pool, size_t n, size_t size); |
|
72 |
71 /** |
73 /** |
72 * A function pointer to the allocators <code>realloc()</code> function. |
74 * A function pointer to the allocators <code>realloc()</code> function. |
73 * @see UcxAllocator |
75 * @see UcxAllocator |
74 */ |
76 */ |
75 typedef void*(*ucx_allocator_realloc)(void *pool, void *data, size_t n); |
77 typedef void*(*ucx_allocator_realloc)(void *pool, void *data, size_t n); |
|
78 |
76 /** |
79 /** |
77 * A function pointer to the allocators <code>free()</code> function. |
80 * A function pointer to the allocators <code>free()</code> function. |
78 * @see UcxAllocator |
81 * @see UcxAllocator |
79 */ |
82 */ |
80 typedef void(*ucx_allocator_free)(void *pool, void *data); |
83 typedef void(*ucx_allocator_free)(void *pool, void *data); |