#include <DataBlockLockPool.h>
Inheritance diagram for DataBlockLockPool:
Public Types | |
typedef ACE_Lock_Adapter< ACE_Thread_Mutex > | DataBlockLock |
Public Member Functions | |
DataBlockLockPool (unsigned long size) | |
~DataBlockLockPool () | |
DataBlockLock * | get_lock () |
Private Types | |
typedef ACE_Array< DataBlockLock > | Pool |
Private Attributes | |
Pool | pool_ |
const unsigned long | size_ |
ACE_Atomic_Op< ACE_Thread_Mutex, unsigned long > | iterator_ |
Counter used to track which lock to give out next (modulus size_). |
: This class is thread safe.
Definition at line 28 of file DataBlockLockPool.h.
typedef ACE_Lock_Adapter<ACE_Thread_Mutex> DataBlockLockPool::DataBlockLock |
Definition at line 30 of file DataBlockLockPool.h.
typedef ACE_Array<DataBlockLock> DataBlockLockPool::Pool [private] |
Definition at line 47 of file DataBlockLockPool.h.
DataBlockLockPool::DataBlockLockPool | ( | unsigned long | size | ) | [inline] |
DataBlockLockPool::~DataBlockLockPool | ( | ) | [inline] |
DataBlockLock* DataBlockLockPool::get_lock | ( | ) | [inline] |
ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long> DataBlockLockPool::iterator_ [private] |
Counter used to track which lock to give out next (modulus size_).
Definition at line 52 of file DataBlockLockPool.h.
Pool DataBlockLockPool::pool_ [private] |
Definition at line 49 of file DataBlockLockPool.h.
const unsigned long DataBlockLockPool::size_ [private] |
Definition at line 50 of file DataBlockLockPool.h.