98 static inline CxMempool *cxBasicMempoolCreate(size_t capacity) { |
98 static inline CxMempool *cxBasicMempoolCreate(size_t capacity) { |
99 return cxMempoolCreate(capacity, NULL); |
99 return cxMempoolCreate(capacity, NULL); |
100 } |
100 } |
101 |
101 |
102 /** |
102 /** |
103 * Destroys a memory pool including their contents. |
103 * Destroys a memory pool and frees the managed memory. |
104 * |
104 * |
105 * @param pool the memory pool to destroy |
105 * @param pool the memory pool to destroy |
106 */ |
106 */ |
107 __attribute__((__nonnull__)) |
107 __attribute__((__nonnull__)) |
108 void cxMempoolDestroy(CxMempool *pool); |
108 void cxMempoolDestroy(CxMempool *pool); |