#include <commonc++/Common.h++>#include <commonc++/ReadWriteLock.h++>
Go to the source code of this file.
Classes | |
| class | ScopedReadLock |
| A convenience object for lexical scope based synchronization. More... | |
| class | ScopedWriteLock |
| A convenience object for lexical scope based synchronization. More... | |
Namespaces | |
| namespace | ccxx |
Defines | |
| #define | synchronized_read(LOCK) |
| Introduce a code block that is read-locked by the ReadWriteLock LOCK. | |
| #define | synchronized_write(LOCK) |
| Introduce a code block that is write-locked by the ReadWriteLock LOCK. | |
| #define synchronized_read | ( | LOCK | ) |
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.
| #define synchronized_write | ( | LOCK | ) |
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.
1.6.3