ucx/allocator.h

changeset 146
aa376dba1ba8
parent 120
8170f658f017
child 173
31a8682fffb7
equal deleted inserted replaced
145:e974640ec4e0 146:aa376dba1ba8
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);

mercurial