equal
deleted
inserted
replaced
32 const uint max_blocks; ///< The max amount of blocks this pool can have |
32 const uint max_blocks; ///< The max amount of blocks this pool can have |
33 const uint block_size_bits; ///< The size of each block in bits |
33 const uint block_size_bits; ///< The size of each block in bits |
34 const uint item_size; ///< How many bytes one block is |
34 const uint item_size; ///< How many bytes one block is |
35 |
35 |
36 /// Pointer to a function that is called after a new block is added |
36 /// Pointer to a function that is called after a new block is added |
37 const OldMemoryPoolNewBlock *new_block_proc; |
37 OldMemoryPoolNewBlock *new_block_proc; |
38 /// Pointer to a function that is called to clean a block |
38 /// Pointer to a function that is called to clean a block |
39 const OldMemoryPoolCleanBlock *clean_block_proc; |
39 OldMemoryPoolCleanBlock *clean_block_proc; |
40 |
40 |
41 uint current_blocks; ///< How many blocks we have in our pool |
41 uint current_blocks; ///< How many blocks we have in our pool |
42 uint total_items; ///< How many items we now have in this pool |
42 uint total_items; ///< How many items we now have in this pool |
43 |
43 |
44 public: |
44 public: |