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

Public Member Functions | |
| __synchronizeMethodRead (const LOW_objectSynchronizer &inObjectSynchronizer, std::string inFile, int inLine) | |
| Obtain the read lock. | |
| ~__synchronizeMethodRead () | |
| Release the lock. | |
Private Attributes | |
| const LOW_objectSynchronizer & | objectSynchronizer |
| Reference to the object to lock on. | |
The class is intended to be used in a "locking is creation" design pattern. On creation a read lock on a rwlock is optained, and on destruction the rwlock is released.
Definition at line 337 of file LOW_objectSynchronizer.h.
|
||||||||||||||||
|
Obtain the read lock. Inlined for performance reasons.
Definition at line 345 of file LOW_objectSynchronizer.h. References LOW_thread_rwlock::lockRead(), objectSynchronizer, LOW_objectSynchronizer::objectSyncRwlock, LOW_helper_msglog::objSync_getLock_dl, LOW_helper_msglog::objSync_lockFailed_dl, LOW_helper_msglog::printDebug(), and LOW_thread_rwlock::tryLockRead(). |
|
|
Release the lock. Inlined for performance reasons. Definition at line 370 of file LOW_objectSynchronizer.h. References objectSynchronizer, LOW_objectSynchronizer::objectSyncRwlock, and LOW_thread_rwlock::unlock(). |
|
|
Reference to the object to lock on.
Definition at line 376 of file LOW_objectSynchronizer.h. Referenced by __synchronizeMethodRead(), and ~__synchronizeMethodRead(). |
1.3.2