src/oldpool.h
changeset 7879 5aebaae4c34b
parent 7877 eca84d5e568a
child 7881 9f20c98e2af7
equal deleted inserted replaced
7878:70e8283207cd 7879:5aebaae4c34b
    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: