X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fmempool.h;h=0f043d602c1d07f54d780be949def05c08fc8b34;hb=bc5f818d21b7aceaf2c0e263b00aa4295211d8f9;hp=59ef22960e0df875f8beaec5f99b69dcaea406c7;hpb=f1155256f7a168f5e2c0097cb4e7197b79c4f041;p=libucw.git diff --git a/ucw/mempool.h b/ucw/mempool.h index 59ef2296..0f043d60 100644 --- a/ucw/mempool.h +++ b/ucw/mempool.h @@ -35,6 +35,7 @@ #define mp_realloc ucw_mp_realloc #define mp_realloc_zero ucw_mp_realloc_zero #define mp_restore ucw_mp_restore +#define mp_shrink ucw_mp_shrink #define mp_spread_internal ucw_mp_spread_internal #define mp_start ucw_mp_start #define mp_start_internal ucw_mp_start_internal @@ -68,11 +69,11 @@ struct mempool_state { * You should use this one as an opaque handle only, the insides are internal. **/ struct mempool { - struct ucw_allocator allocator; + struct ucw_allocator allocator; // This must be the first element struct mempool_state state; void *unused, *last_big; size_t chunk_size, threshold; - uns idx; + uint idx; u64 total_size; };