* Sherlock Library -- Memory Pools
*
* (c) 1997--2001 Martin Mares <mj@ucw.cz>
+ *
+ * This software may be freely distributed and used according to the terms
+ * of the GNU Lesser General Public License.
*/
+#ifndef _SHERLOCK_POOLS_H
+#define _SHERLOCK_POOLS_H
+
#ifndef POOL_ALIGN
#define POOL_ALIGN CPU_STRUCT_ALIGN
#endif
void mp_delete(struct mempool *);
void mp_flush(struct mempool *);
void *mp_alloc(struct mempool *, uns);
+void *mp_alloc_zero(struct mempool *, uns);
static inline void *mp_alloc_fast(struct mempool *p, uns l)
{
p->free = ee;
return f;
}
+
+#endif