X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Feltpool.h;h=24911fb5e54c625e6a574081a8200817358d480c;hb=fd2a1b7dd39127af9f4deaaea56ce3deb5102585;hp=a3a4e427a517d29d92be92c5c88a3866d03ba57f;hpb=026358b2c904d3e5677928fefc625ca52a0c90a1;p=libucw.git diff --git a/ucw/eltpool.h b/ucw/eltpool.h index a3a4e427..24911fb5 100644 --- a/ucw/eltpool.h +++ b/ucw/eltpool.h @@ -50,6 +50,8 @@ struct eltpool_free { * The pool will allocate chunks of at least @elts_per_chunk elements. * Higher numbers lead to better allocation times but also to bigger * unused memory blocks. Call @ep_delete() to free all pool's resources. + * + * Element pools can be treated as <>, see <>. **/ struct eltpool *ep_new(uns elt_size, uns elts_per_chunk); @@ -79,7 +81,7 @@ void *ep_alloc_slow(struct eltpool *pool); /* Internal. Do not call directly. */ static inline void *ep_alloc(struct eltpool *pool) { pool->num_allocated++; -#ifdef CONFIG_FAKE_ELTPOOL +#ifdef CONFIG_UCW_FAKE_ELTPOOL return xmalloc(pool->elt_size); #else struct eltpool_free *elt; @@ -99,7 +101,7 @@ static inline void *ep_alloc(struct eltpool *pool) static inline void ep_free(struct eltpool *pool, void *p) { pool->num_allocated--; -#ifdef CONFIG_FAKE_ELTPOOL +#ifdef CONFIG_UCW_FAKE_ELTPOOL (void) pool; xfree(p); #else