#include <LOW_objectSynchronizer.h>
Collaboration diagram for LOW_objectSynchronizer::__synchronizeStaticWrite:

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 |
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.
|
||||||||||||||||||||
|
Obtain the write lock. Inlined for performance reasons.
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(). |
|
|
Release the lock. Inlined for performance reasons. Definition at line 184 of file LOW_objectSynchronizer.h. References writeLockHolder. |
|
|
Pointer to pointer to the static lock.
Definition at line 194 of file LOW_objectSynchronizer.h. Referenced by __synchronizeStaticWrite(). |
|
|
Definition at line 195 of file LOW_objectSynchronizer.h. Referenced by __synchronizeStaticWrite(), and ~__synchronizeStaticWrite(). |
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001