#include <CoreLinuxGuardPool.hpp>
Public Methods | |
CoreLinuxGuardPool ( Short numInit=8, Short numExt=0 ) throw ( Assertion ) | |
Default constructor. More... | |
virtual | ~CoreLinuxGuardPool ( void ) |
Virtual destructor. | |
Static Public Methods | |
bool | isLocked ( SynchronizedPtr ) throw ( SemaphoreException ) |
isLocked determines if the object is currently locked. More... | |
Short | getInitialPoolSize ( void ) |
Return the initial guard count in the pool. | |
Short | getExtentSize ( void ) |
Return the current grow by count for the pool. | |
Short | getTotalCurrentSize ( void ) |
Return the current guard pool size. | |
void | lock ( SynchronizedPtr ) throw ( SemaphoreException ) |
lock is called by a guard when control is needed over a objects resource access. More... | |
void | release ( SynchronizedPtr ) throw ( SemaphoreException ) |
release is called by a guard object during its destruction. More... | |
void | setExtentSize ( Short aExtentSize ) throw ( Assertion ) |
Run time interface for changing the extent size. More... | |
Protected Methods | |
bool | isSynchronizedLocked ( SynchronizedPtr ) throw ( SemaphoreException ) |
isSynchronizedLocked resolves whether Synchronized is in a locked state. More... | |
void | lockSynchronized ( SynchronizedPtr ) throw ( SemaphoreException ) |
lockSynchronized manages the associations of objects to the semaphore in the pool in establishing the guard. More... | |
void | releaseSynchronized ( SynchronizedPtr ) throw ( SemaphoreException ) |
releaseSynchronized manages the associations of objects to the semaphore in the pool when releasing a guard. More... | |
void | createPoolGroup ( Short numSems, Short initSize=0 ) |
createPoolGroup creates a semaphore set with the requested number of semaphores in the group and will add the semaphores to theSemaphores with initial count and index set properly. More... | |
void | destroyPoolGroup ( Index aGroup ) |
destroyPoolGroup validates that all the semaphores in the extent are not being used and then destroys the extent and all the semaphores associated with it. More... | |
Static Protected Attributes | |
GuardPool | theGuard |
Singleton instance. | |
Short | theInitialSize |
Describes the inital pool size. | |
Short | theExtentSize |
Describes the size to add when going into extents. |
|
Default constructor.
|
|
createPoolGroup creates a semaphore set with the requested number of semaphores in the group and will add the semaphores to theSemaphores with initial count and index set properly.
|
|
destroyPoolGroup validates that all the semaphores in the extent are not being used and then destroys the extent and all the semaphores associated with it. The method assumes that the group is the last in the vector.
|
|
isLocked determines if the object is currently locked. Calls singleton instance isSynchronizedLocked.
|
|
isSynchronizedLocked resolves whether Synchronized is in a locked state.
|
|
lock is called by a guard when control is needed over a objects resource access. Calls singleton instance lockedSynchronized.
|
|
lockSynchronized manages the associations of objects to the semaphore in the pool in establishing the guard.
|
|
release is called by a guard object during its destruction.
|
|
releaseSynchronized manages the associations of objects to the semaphore in the pool when releasing a guard.
|
|
Run time interface for changing the extent size. The next time the pool goes into extent processing, this will be used.
|