#include <query.h>
This class links deallocated elements in the list of free elements, and reused them in future. So number of system memory allocator invocations is dramatically reduced. Cleanup of free elements lst is performed by dbDatabase::cleanup() method
Public Member Functions | |
| void | deallocate (dbQueryElement *first, dbQueryElement **lastNext) |
| void * | allocate (size_t size) |
| dbQueryElementAllocator () | |
| ~dbQueryElementAllocator () | |
Static Public Attributes | |
| static dbQueryElementAllocator | instance |
Private Attributes | |
| dbMutex | mutex |
| dbQueryElement * | freeChain |
Friends | |
| class | dbDatabase |
| void deallocate | ( | dbQueryElement * | first, | |
| dbQueryElement ** | lastNext | |||
| ) | [inline] |
| void * allocate | ( | size_t | size | ) |
friend class dbDatabase [friend] |
dbQueryElement* freeChain [private] |
BEGIN_FASTDB_NAMESPACE dbQueryElementAllocator instance [static] |