dblockpool_init.c 393 B

1234567891011121314
  1. #include "private.h"
  2. /*--------------------------------------------------------- */
  3. void
  4. lub_dblockpool_init(lub_dblockpool_t * this,
  5. size_t block_size, unsigned chunk_size, unsigned max_chunks)
  6. {
  7. this->first_chunk = NULL;
  8. this->block_size = block_size;
  9. this->chunk_size = chunk_size;
  10. this->max_chunks = max_chunks;
  11. }
  12. /*--------------------------------------------------------- */