Shadowrun: Awakened
Public Member Functions | Protected Attributes

DataStructures::ThreadsafeAllocatingQueue< structureType > Class Template Reference

#include <DS_ThreadsafeAllocatingQueue.h>

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

List of all members.

Public Member Functions

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

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 
)
template<class structureType >
void DataStructures::ThreadsafeAllocatingQueue< structureType >::Clear ( const char *  file,
unsigned int  line 
)
template<class structureType>
void DataStructures::ThreadsafeAllocatingQueue< structureType >::Deallocate ( structureType *  s,
const char *  file,
unsigned int  line 
)
template<class structureType >
structureType * DataStructures::ThreadsafeAllocatingQueue< structureType >::Pop ( void   ) 
template<class structureType >
structureType * DataStructures::ThreadsafeAllocatingQueue< structureType >::PopInaccurate ( void   ) 
template<class structureType>
void DataStructures::ThreadsafeAllocatingQueue< structureType >::Push ( structureType *  s  ) 
template<class structureType >
void DataStructures::ThreadsafeAllocatingQueue< structureType >::SetPageSize ( int  size  ) 

Member Data Documentation

template<class structureType>
MemoryPool<structureType> DataStructures::ThreadsafeAllocatingQueue< structureType >::memoryPool [protected]
template<class structureType>
SimpleMutex DataStructures::ThreadsafeAllocatingQueue< structureType >::memoryPoolMutex [protected]
template<class structureType>
Queue<structureType*> DataStructures::ThreadsafeAllocatingQueue< structureType >::queue [protected]
template<class structureType>
SimpleMutex DataStructures::ThreadsafeAllocatingQueue< structureType >::queueMutex [protected]

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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net