| 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. |