dbQueryElementAllocator Class Reference

#include <query.h>

List of all members.


Detailed Description

Allocator of query elements.

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
dbQueryElementfreeChain

Friends

class dbDatabase


Constructor & Destructor Documentation


Member Function Documentation

void deallocate ( dbQueryElement first,
dbQueryElement **  lastNext 
) [inline]

void * allocate ( size_t  size  ) 


Friends And Related Function Documentation

friend class dbDatabase [friend]


Member Data Documentation

dbMutex mutex [private]

BEGIN_FASTDB_NAMESPACE dbQueryElementAllocator instance [static]


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild