Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LOW_objectSynchronizer::__synchronizeStaticWrite Class Reference

Write locking class to ensure exclusive access. More...

#include <LOW_objectSynchronizer.h>

Collaboration diagram for LOW_objectSynchronizer::__synchronizeStaticWrite:

Collaboration graph
[legend]
List of all members.

Public Methods

 __synchronizeStaticWrite (LOW_thread_rwlock **inRwlockSingleton, LOW_platformMiscFactory::threadIdent_t &inWriteLockHolder, std::string inFile, int inLine)
 Obtain the write lock. More...

 ~__synchronizeStaticWrite ()
 Release the lock. More...


Private Attributes

LOW_thread_rwlock ** staticRwLock
 Pointer to pointer to the static lock. More...

LOW_platformMiscFactory::threadIdent_t & writeLockHolder

Detailed Description

Write locking class to ensure exclusive access.

The class is intended to be used in a "locking is creation" design pattern. On creation a write lock on a rwlock is optained, and on destruction the rwlock is released.

Definition at line 144 of file LOW_objectSynchronizer.h.


Constructor & Destructor Documentation

LOW_objectSynchronizer::__synchronizeStaticWrite::__synchronizeStaticWrite LOW_thread_rwlock **    inRwlockSingleton,
LOW_platformMiscFactory::threadIdent_t &    inWriteLockHolder,
std::string    inFile,
int    inLine
[inline]
 

Obtain the write lock.

Inlined for performance reasons.

Parameters:
inObjectSynchronizer  Reference to the object to synchronize on.

Definition at line 152 of file LOW_objectSynchronizer.h.

References __synchronizeStaticWrite(), LOW_platformMisc::getThreadID(), LOW_thread_Factory::new_rwlock(), LOW_helper_msglog::objSync_getLock_dl, LOW_helper_msglog::objSync_lockFailed_dl, LOW_helper_msglog::printDebug(), staticRwLock, and writeLockHolder.

Referenced by __synchronizeStaticWrite().

LOW_objectSynchronizer::__synchronizeStaticWrite::~__synchronizeStaticWrite   [inline]
 

Release the lock.

Inlined for performance reasons.

Definition at line 184 of file LOW_objectSynchronizer.h.

References writeLockHolder.


Member Data Documentation

LOW_thread_rwlock** LOW_objectSynchronizer::__synchronizeStaticWrite::staticRwLock [private]
 

Pointer to pointer to the static lock.

Definition at line 194 of file LOW_objectSynchronizer.h.

Referenced by __synchronizeStaticWrite().

LOW_platformMiscFactory::threadIdent_t& LOW_objectSynchronizer::__synchronizeStaticWrite::writeLockHolder [private]
 

Definition at line 195 of file LOW_objectSynchronizer.h.

Referenced by __synchronizeStaticWrite(), and ~__synchronizeStaticWrite().


The documentation for this class was generated from the following file:
Generated on Mon Oct 27 22:56:32 2003 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001