#include <string.h>
#include <pthread.h>
Go to the source code of this file.
◆ Atomic
| #define Atomic |
( |
|
type | ) |
type |
◆ Atomic_BEG
| #define Atomic_BEG |
( |
|
x | ) |
pthread_mutex_lock(x) |
◆ Atomic_DEC
| #define Atomic_DEC |
( |
|
x | ) |
x-- |
◆ Atomic_END
| #define Atomic_END |
( |
|
x | ) |
pthread_mutex_unlock(x) |
◆ Atomic_GET
| #define Atomic_GET |
( |
|
x | ) |
x |
◆ Atomic_IMP
| #define Atomic_IMP "missing" |
◆ Atomic_INC
| #define Atomic_INC |
( |
|
x | ) |
x++ |
◆ Atomic_SET
| #define Atomic_SET |
( |
|
x, |
|
|
|
y |
|
) |
| x = y |
◆ Atomic_ZAP
| #define Atomic_ZAP |
( |
|
x | ) |
x = 0 |
◆ NEED_ATOMIC_MUTEX
| #define NEED_ATOMIC_MUTEX 1 |
Use native atomics at the c11 or higher level (-std=c++0x -lstdc++)