#include <LOW_objectSynchronizer.h>
Collaboration diagram for LOW_objectSynchronizer::__synchronizeMethodWrite:
Public Member Functions | |
__synchronizeMethodWrite (LOW_objectSynchronizer &inObjectSynchronizer, std::string inFile, int inLine) | |
Obtain the write lock. | |
~__synchronizeMethodWrite () | |
Release the lock. | |
Private Attributes | |
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 write lock on a rwlock is optained, and on destruction the rwlock is released.
Definition at line 386 of file LOW_objectSynchronizer.h.
|
Obtain the write lock. Inlined for performance reasons.
Definition at line 394 of file LOW_objectSynchronizer.h. References LOW_platformMisc::getThreadID(), LOW_thread_rwlock::lockWrite(), objectSynchronizer, LOW_objectSynchronizer::objectSyncRwlock, LOW_helper_msglog::objSync_getLock_dl, LOW_helper_msglog::objSync_lockFailed_dl, LOW_helper_msglog::printDebug(), LOW_thread_rwlock::tryLockWrite(), and LOW_objectSynchronizer::writeLockHolder. |
|
Release the lock. Inlined for performance reasons. Definition at line 423 of file LOW_objectSynchronizer.h. References objectSynchronizer, LOW_objectSynchronizer::objectSyncRwlock, LOW_thread_rwlock::unlock(), and LOW_objectSynchronizer::writeLockHolder. |
|
Reference to the object to lock on.
Definition at line 433 of file LOW_objectSynchronizer.h. Referenced by __synchronizeMethodWrite(), and ~__synchronizeMethodWrite(). |