#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 32 of file win32/coil/atomic.h.
◆ atomic_decr
Value:{ \
coil::Guard<coil::Mutex> guard(__mutex); \
--x; \
}
Definition at line 44 of file win32/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 38 of file win32/coil/atomic.h.
◆ exchange_add()
int exchange_add |
( |
int * |
x, |
|
|
int |
y, |
|
|
coil::Mutex * |
mutex |
|
) |
| |