NetBufferPool Class Reference

#include <NetBufferPool.h>

List of all members.

Public Member Functions

void addToPool (NetBuffer *message)
NetBuffergetFromPool ()

Static Public Member Functions

static NetBufferPoolinstance ()

Protected Attributes

std::list< NetBuffer * > messagePool_
SDL_mutex * messagePoolMutex_

Static Protected Attributes

static NetBufferPoolinstance_ = 0

Private Member Functions

 NetBufferPool ()
virtual ~NetBufferPool ()


Detailed Description

Definition at line 29 of file NetBufferPool.h.


Constructor & Destructor Documentation

NetBufferPool::NetBufferPool (  )  [private]

Definition at line 34 of file NetBufferPool.cpp.

References messagePoolMutex_.

NetBufferPool::~NetBufferPool (  )  [private, virtual]

Definition at line 39 of file NetBufferPool.cpp.

References messagePoolMutex_.


Member Function Documentation

NetBufferPool * NetBufferPool::instance (  )  [static]

Definition at line 25 of file NetBufferPool.cpp.

References instance_.

Referenced by NetBuffer::compressBuffer(), NetBuffer::uncompressBuffer(), and OptionsScorched::updateChangeSet().

void NetBufferPool::addToPool ( NetBuffer message  ) 

Definition at line 44 of file NetBufferPool.cpp.

References messagePool_, and messagePoolMutex_.

Referenced by NetBuffer::compressBuffer(), NetBuffer::uncompressBuffer(), and OptionsScorched::updateChangeSet().

NetBuffer * NetBufferPool::getFromPool (  ) 

Definition at line 51 of file NetBufferPool.cpp.

References messagePool_, messagePoolMutex_, and NetBuffer::reset().

Referenced by NetBuffer::compressBuffer(), NetBuffer::uncompressBuffer(), and OptionsScorched::updateChangeSet().


Member Data Documentation

NetBufferPool * NetBufferPool::instance_ = 0 [static, protected]

Definition at line 38 of file NetBufferPool.h.

Referenced by instance().

std::list<NetBuffer *> NetBufferPool::messagePool_ [protected]

Definition at line 39 of file NetBufferPool.h.

Referenced by addToPool(), and getFromPool().

SDL_mutex* NetBufferPool::messagePoolMutex_ [protected]

Definition at line 40 of file NetBufferPool.h.

Referenced by addToPool(), getFromPool(), NetBufferPool(), and ~NetBufferPool().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:04 2009 for Scorched3D by  doxygen 1.5.3