Public Member Functions | Protected Attributes

DataStructures::ThreadsafeAllocatingQueue< structureType > Class Template Reference

#include <DS_ThreadsafeAllocatingQueue.h>

Collaboration diagram for DataStructures::ThreadsafeAllocatingQueue< structureType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void Push (structureType *s)
structureType * PopInaccurate (void)
structureType * Pop (void)
void SetPageSize (int size)
bool IsEmpty (void)
structureType * Allocate (const char *file, unsigned int line)
void Deallocate (structureType *s, const char *file, unsigned int line)
void Clear (const char *file, unsigned int line)

Protected Attributes

MemoryPool< structureType > memoryPool
SimpleMutex memoryPoolMutex
Queue< structureType * > queue
SimpleMutex queueMutex

Detailed Description

template<class structureType>
class DataStructures::ThreadsafeAllocatingQueue< structureType >

Definition at line 22 of file DS_ThreadsafeAllocatingQueue.h.


Member Function Documentation

template<class structureType >
structureType * DataStructures::ThreadsafeAllocatingQueue< structureType >::Allocate ( const char *  file,
unsigned int  line 
)

Definition at line 83 of file DS_ThreadsafeAllocatingQueue.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class structureType >
void DataStructures::ThreadsafeAllocatingQueue< structureType >::Clear ( const char *  file,
unsigned int  line 
)

Definition at line 104 of file DS_ThreadsafeAllocatingQueue.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class structureType>
void DataStructures::ThreadsafeAllocatingQueue< structureType >::Deallocate ( structureType *  s,
const char *  file,
unsigned int  line 
)

Definition at line 94 of file DS_ThreadsafeAllocatingQueue.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class structureType >
bool DataStructures::ThreadsafeAllocatingQueue< structureType >::IsEmpty ( void   ) 

Definition at line 126 of file DS_ThreadsafeAllocatingQueue.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class structureType >
structureType * DataStructures::ThreadsafeAllocatingQueue< structureType >::Pop ( void   ) 

Definition at line 68 of file DS_ThreadsafeAllocatingQueue.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class structureType >
structureType * DataStructures::ThreadsafeAllocatingQueue< structureType >::PopInaccurate ( void   ) 

Definition at line 53 of file DS_ThreadsafeAllocatingQueue.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class structureType>
void DataStructures::ThreadsafeAllocatingQueue< structureType >::Push ( structureType *  s  ) 

Definition at line 45 of file DS_ThreadsafeAllocatingQueue.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class structureType >
void DataStructures::ThreadsafeAllocatingQueue< structureType >::SetPageSize ( int  size  ) 

Definition at line 120 of file DS_ThreadsafeAllocatingQueue.h.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

template<class structureType>
MemoryPool<structureType> DataStructures::ThreadsafeAllocatingQueue< structureType >::memoryPool [protected]

Definition at line 38 of file DS_ThreadsafeAllocatingQueue.h.

template<class structureType>
SimpleMutex DataStructures::ThreadsafeAllocatingQueue< structureType >::memoryPoolMutex [protected]

Definition at line 39 of file DS_ThreadsafeAllocatingQueue.h.

template<class structureType>
Queue<structureType*> DataStructures::ThreadsafeAllocatingQueue< structureType >::queue [protected]

Definition at line 40 of file DS_ThreadsafeAllocatingQueue.h.

template<class structureType>
SimpleMutex DataStructures::ThreadsafeAllocatingQueue< structureType >::queueMutex [protected]

Definition at line 41 of file DS_ThreadsafeAllocatingQueue.h.


The documentation for this class was generated from the following file: