#include <coil/Mutex.h>
#include <coil/Guard.h>
Go to the source code of this file.
◆ atomic_add
#define atomic_add |
( |
|
x, |
|
|
|
y |
|
) |
| |
Value:{ \
coil::Guard<coil::Mutex> guard(__mutex); \
*x = *x + y; \
}
Definition at line 25 of file ace/coil/atomic.h.
◆ atomic_decr
Value:{ \
coil::Guard<coil::Mutex> guard(__mutex); \
--(*x); \
}
Definition at line 37 of file ace/coil/atomic.h.
◆ atomic_exchange_add
#define atomic_exchange_add |
( |
|
x, |
|
|
|
y |
|
) |
| exchange_add(x, y, &__mutex) |
◆ atomic_incr
Value:{ \
coil::Guard<coil::Mutex> guard(__mutex); \
++(*x); \
}
Definition at line 31 of file ace/coil/atomic.h.
◆ COIL_USES_ATOMIC_OP
◆ exchange_add()
int exchange_add |
( |
int * |
x, |
|
|
int |
y, |
|
|
coil::Mutex * |
mutex |
|
) |
| |