(svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*.

This commit is contained in:
rubidium
2007-08-03 20:18:38 +00:00
parent 9741094464
commit 2dd7a5d296
8 changed files with 30 additions and 48 deletions

View File

@@ -106,24 +106,6 @@ struct OldMemoryPool : public OldMemoryPoolBase {
}
};
/**
* Those are the wrappers:
* CleanPool cleans the pool up, but you can use AddBlockToPool directly again
* (no need to call CreatePool!)
* AddBlockToPool adds 1 more block to the pool. Returns false if there is no
* more room
*/
static inline void CleanPool(OldMemoryPoolBase *array) { array->CleanPool(); }
static inline bool AddBlockToPool(OldMemoryPoolBase *array) { return array->AddBlockToPool(); }
/**
* Adds blocks to the pool if needed (and possible) till index fits inside the pool
*
* @return Returns false if adding failed
*/
static inline bool AddBlockIfNeeded(OldMemoryPoolBase *array, uint index) { return array->AddBlockIfNeeded(index); }
/**
* Generic function to initialize a new block in a pool.
* @param start_item the first item that needs to be initialized