CMGDK r49-rc2
宏定义 | 函数
K:/CMGDKv18/SDK/Source/SQL/MySQL/include/my_atomic.h文件参考
#include "atomic/nolock.h"
#include "atomic/rwlock.h"

浏览该文件的源代码。

宏定义

#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  )
 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义