Go to the source code of this file.
◆ synchronized_read
#define synchronized_read |
( |
|
LOCK | ) |
|
Value:for(commoncpp::ScopedReadLock \
CCXX_OS_UNIQUE_VARNAME(LOCK, __LINE__, locker)(LOCK); \
CCXX_OS_UNIQUE_VARNAME(LOCK, __LINE__, locker).testOnce();)
Introduce a code block that is read-locked by the ReadWriteLock LOCK.
◆ synchronized_write
#define synchronized_write |
( |
|
LOCK | ) |
|
Value:for(commoncpp::ScopedWriteLock \
CCXX_OS_UNIQUE_VARNAME(LOCK, __LINE__, locker)(LOCK); \
CCXX_OS_UNIQUE_VARNAME(LOCK, __LINE__, locker).testOnce();)
Introduce a code block that is write-locked by the ReadWriteLock LOCK.