#include <LOW_objectSynchronizer.h>
Collaboration diagram for LOW_objectSynchronizer::__synchronizeStaticReadWeak:
Public Member Functions | |
__synchronizeStaticReadWeak (LOW_thread_rwlock **inRwlockSingleton, LOW_platformMiscFactory::threadIdent_t &inWriteLockHolder, std::string inFile, int inLine) | |
Obtain the weak read lock. | |
~__synchronizeStaticReadWeak () | |
Release the weak lock. | |
Private Attributes | |
LOW_thread_rwlock ** | staticRwLock |
Pointer to pointer to the static lock. | |
bool | wasObtainedWeakly |
Indicate if lock was really obtained. |
Works similar to __synchronizeMethodRead with one difference in the following situation: If the calling thread already has a write lock then no blocking will occur and no lock will be obtained.
Definition at line 205 of file LOW_objectSynchronizer.h.
|
Obtain the weak read lock. Inlined for performance reasons.
Definition at line 213 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 wasObtainedWeakly. |
|
Release the weak lock. Inlined for performance reasons. Definition at line 243 of file LOW_objectSynchronizer.h. References wasObtainedWeakly. |
|
Pointer to pointer to the static lock.
Definition at line 250 of file LOW_objectSynchronizer.h. Referenced by __synchronizeStaticReadWeak(). |
|
Indicate if lock was really obtained.
Definition at line 251 of file LOW_objectSynchronizer.h. Referenced by __synchronizeStaticReadWeak(), and ~__synchronizeStaticReadWeak(). |