#include <LOW_objectSynchronizer.h>
Collaboration diagram for LOW_objectSynchronizer::__synchronizeStaticWrite:
Public Member Functions | |
__synchronizeStaticWrite (LOW_thread_rwlock **inRwlockSingleton, LOW_platformMiscFactory::threadIdent_t &inWriteLockHolder, std::string inFile, int inLine) | |
Obtain the write lock. | |
~__synchronizeStaticWrite () | |
Release the lock. | |
Private Attributes | |
LOW_thread_rwlock ** | staticRwLock |
Pointer to pointer to the static lock. | |
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 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. |
|
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(). |