dblockpool_init.c 489 B

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