sc_core::sc_allocator Class Reference

List of all members.

Classes

union  link

Public Member Functions

 sc_allocator (int blksz, int cellsz)
 ~sc_allocator ()
void * allocate ()
void release (void *p)
void display_statistics ()

Private Attributes

int block_size
int cell_size
char * block_list
linkfree_list
char * next_avail
int total_alloc
int total_freed
int free_list_alloc

Friends

class sc_mempool


Constructor & Destructor Documentation

sc_core::sc_allocator::sc_allocator ( int  blksz,
int  cellsz 
)

sc_core::sc_allocator::~sc_allocator (  ) 


Member Function Documentation

void * sc_core::sc_allocator::allocate (  ) 

void sc_core::sc_allocator::display_statistics (  ) 

void sc_core::sc_allocator::release ( void *  p  ) 


Friends And Related Function Documentation

friend class sc_mempool [friend]


Member Data Documentation

Referenced by allocate(), and sc_allocator().

Referenced by allocate(), release(), and sc_allocator().

Referenced by allocate(), and sc_allocator().


The documentation for this class was generated from the following file:
Generated by
Matthieu Moy <Matthieu.Moy@st.com>
Back to Pinapa Home Page