Go to the source code of this file.
Macro Definition Documentation
#define ACQUIRE_WLOCK |
( |
|
lock | ) |
(lock).acquire(MamdaLock::WRITE) |
#define ACQUIRE_RLOCK |
( |
|
lock | ) |
(lock).acquire(MamdaLock::READ) |
#define RELEASE_WLOCK |
( |
|
lock | ) |
(lock).release(MamdaLock::WRITE) |
#define RELEASE_RLOCK |
( |
|
lock | ) |
(lock).release(MamdaLock::READ) |
#define ACQUIRE_LOCK |
( |
|
lock, |
|
|
|
writeNeeded |
|
) |
| |
Value:do { \
if (writeNeeded) \
(lock).acquire(MamdaLock::WRITE); \
else \
(lock).acquire(MamdaLock::READ); \
} while (0)
#define RELEASE_LOCK |
( |
|
lock, |
|
|
|
isWrite |
|
) |
| |
Value:do { \
if (isWrite) \
(lock).release(MamdaLock::WRITE); \
else \
(lock).release(MamdaLock::READ); \
} while (0)