DataBlockLockPool Class Reference

Holds and distributes locks to be used for locking ACE_Data_Blocks. Currently it does not require returning the locks. More...

#include <DataBlockLockPool.h>

List of all members.

Public Types

typedef ACE_Lock_Adapter<
ACE_Thread_Mutex > 
DataBlockLock

Public Member Functions

 DataBlockLockPool (size_t size)
virtual ~DataBlockLockPool ()
DataBlockLockget_lock ()
void return_lock (DataBlockLock *lock)

Private Types

typedef ACE_Array< DataBlockLockPool

Private Attributes

Pool pool_
size_t size_
size_t iterator_
 Used to track which lock to give out next.


Detailed Description

Holds and distributes locks to be used for locking ACE_Data_Blocks. Currently it does not require returning the locks.

Note:
: The lock returned is not guaranteed to be unique.

: This class is NOT thread safe.


Member Typedef Documentation

typedef ACE_Lock_Adapter<ACE_Thread_Mutex> DataBlockLockPool::DataBlockLock

typedef ACE_Array<DataBlockLock> DataBlockLockPool::Pool [private]


Constructor & Destructor Documentation

DataBlockLockPool::DataBlockLockPool ( size_t  size  ) 

DataBlockLockPool::~DataBlockLockPool (  )  [virtual]


Member Function Documentation

DataBlockLockPool::DataBlockLock * DataBlockLockPool::get_lock (  ) 

void DataBlockLockPool::return_lock ( DataBlockLock lock  ) 


Member Data Documentation

size_t DataBlockLockPool::iterator_ [private]

Used to track which lock to give out next.

Pool DataBlockLockPool::pool_ [private]

size_t DataBlockLockPool::size_ [private]


The documentation for this class was generated from the following files:
Generated on Fri Jun 20 10:21:30 2008 for OpenDDS by  doxygen 1.4.7