#include <coil/Mutex.h>
#include <coil/Guard.h>
Go to the source code of this file.
#define atomic_add |
( |
|
x, |
|
|
|
y |
|
) |
| |
Value:{ \
coil::Guard<coil::Mutex> guard(__mutex); \
*x = *x + y; \
}
Definition at line 36 of file posix/coil/atomic.h.
Value:{ \
coil::Guard<coil::Mutex> guard(__mutex); \
--(*x); \
}
Definition at line 48 of file posix/coil/atomic.h.
#define atomic_exchange_add |
( |
|
x, |
|
|
|
y |
|
) |
| exchange_add(x, y, &__mutex) |
Value:{ \
coil::Guard<coil::Mutex> guard(__mutex); \
++(*x); \
}
Definition at line 42 of file posix/coil/atomic.h.
int exchange_add |
( |
int * |
x, |
|
|
int |
y, |
|
|
coil::Mutex * |
mutex |
|
) |
| |