src/cx/mempool.h

changeset 1178
9998cfb4a65b
parent 1103
7c1e322b9165
child 1180
4c3a69b9723a
equal deleted inserted replaced
1177:04ede4de9cec 1178:9998cfb4a65b
100 * Creates a basic array-based memory pool. 100 * Creates a basic array-based memory pool.
101 * 101 *
102 * @param capacity (@c size_t) the initial capacity of the pool 102 * @param capacity (@c size_t) the initial capacity of the pool
103 * @return (@c CxMempool*) the created memory pool or @c NULL if allocation failed 103 * @return (@c CxMempool*) the created memory pool or @c NULL if allocation failed
104 */ 104 */
105 #define cxBasicMempoolCreate(capacity) cxMempoolCreate(capacity, NULL) 105 #define cxMempoolCreateSimple(capacity) cxMempoolCreate(capacity, NULL)
106 106
107 /** 107 /**
108 * Sets the destructor function for a specific allocated memory object. 108 * Sets the destructor function for a specific allocated memory object.
109 * 109 *
110 * If the memory is not managed by a UCX memory pool, the behavior is undefined. 110 * If the memory is not managed by a UCX memory pool, the behavior is undefined.

mercurial