CMGDK r49-rc2
|
宏定义 | |
#define | intptr void * |
#define | U_32 int32 |
#define | U_ptr intptr |
#define | Uv_32 int32 |
#define | Uv_ptr intptr |
#define | U_a volatile *a |
#define | U_cmp *cmp |
#define | U_v v |
#define | U_set set |
#define | make_atomic_add(S) extern int ## S my_atomic_add ## S(Uv_ ## S U_a, U_ ## S U_v); |
#define | make_atomic_fas(S) extern int ## S my_atomic_fas ## S(Uv_ ## S U_a, U_ ## S U_v); |
#define | make_atomic_cas(S) extern int my_atomic_cas ## S(Uv_ ## S U_a, Uv_ ## S U_cmp, U_ ## S U_set); |
#define | make_atomic_load(S) extern int ## S my_atomic_load ## S(Uv_ ## S U_a); |
#define | make_atomic_store(S) extern void my_atomic_store ## S(Uv_ ## S U_a, U_ ## S U_v); |
#define | LF_BACKOFF (1) |
#define | MY_ATOMIC_OK 0 |
#define | MY_ATOMIC_NOT_1CPU 1 |
函数 | |
make_atomic_cas (32) make_atomic_cas(ptr) make_atomic_add(32) make_atomic_load(32) make_atomic_load(ptr) make_atomic_fas(32) make_atomic_fas(ptr) make_atomic_store(32) make_atomic_store(ptr) extern int my_atomic_initialize() |
#define intptr void * |
#define LF_BACKOFF (1) |
#define make_atomic_add | ( | S | ) | extern int ## S my_atomic_add ## S(Uv_ ## S U_a, U_ ## S U_v); |
#define make_atomic_cas | ( | S | ) | extern int my_atomic_cas ## S(Uv_ ## S U_a, Uv_ ## S U_cmp, U_ ## S U_set); |
#define make_atomic_fas | ( | S | ) | extern int ## S my_atomic_fas ## S(Uv_ ## S U_a, U_ ## S U_v); |
#define make_atomic_load | ( | S | ) | extern int ## S my_atomic_load ## S(Uv_ ## S U_a); |
#define make_atomic_store | ( | S | ) | extern void my_atomic_store ## S(Uv_ ## S U_a, U_ ## S U_v); |
#define MY_ATOMIC_NOT_1CPU 1 |
#define MY_ATOMIC_OK 0 |
#define U_32 int32 |
#define U_a volatile *a |
#define U_cmp *cmp |
#define U_ptr intptr |
#define U_set set |
#define U_v v |
#define Uv_32 int32 |
#define Uv_ptr intptr |
make_atomic_cas | ( | 32 | ) |