#include <LOW_objectSynchronizer.h>
Collaboration diagram for LOW_objectSynchronizer::__synchronizeMethodWriteWeak:
Public Member Functions | |
__synchronizeMethodWriteWeak (LOW_objectSynchronizer &inObjectSynchronizer, std::string inFile, int inLine) | |
Obtain the weak write lock. | |
~__synchronizeMethodWriteWeak () | |
Release the weak write lock. | |
Private Attributes | |
LOW_objectSynchronizer & | objectSynchronizer |
Reference to the object to lock on. | |
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 497 of file LOW_objectSynchronizer.h.
|
Obtain the weak write lock. Inlined for performance reasons.
Definition at line 505 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(), wasObtainedWeakly, and LOW_objectSynchronizer::writeLockHolder. |
|
Release the weak write lock. Inlined for performance reasons. Definition at line 537 of file LOW_objectSynchronizer.h. References objectSynchronizer, LOW_objectSynchronizer::objectSyncRwlock, LOW_thread_rwlock::unlock(), wasObtainedWeakly, and LOW_objectSynchronizer::writeLockHolder. |
|
Reference to the object to lock on.
Definition at line 549 of file LOW_objectSynchronizer.h. Referenced by __synchronizeMethodWriteWeak(), and ~__synchronizeMethodWriteWeak(). |
|
Indicate if lock was really obtained.
Definition at line 550 of file LOW_objectSynchronizer.h. Referenced by __synchronizeMethodWriteWeak(), and ~__synchronizeMethodWriteWeak(). |