提交 0b512381 编写于 作者: C cheng_jinsong

fix ATOMIC_INIT

Signed-off-by: Ncheng_jinsong <chengjinsong2@huawei.com>
上级 db8305aa
......@@ -30,7 +30,7 @@
#define INVALID_SOCKET (-1)
static const uint32_t RECV_BUFFER_MAX = 5 * 1024;
static atomic_uint g_requestId = ATOMIC_VAR_INIT(1);
static atomic_uint g_requestId;
static int g_clientFd = INVALID_SOCKET;
static pthread_mutex_t g_clientMutex = PTHREAD_MUTEX_INITIALIZER;
......@@ -39,6 +39,7 @@ __attribute__((constructor)) static void ParameterInit(void)
if (getpid() == 1) {
return;
}
ATOMIC_INIT(&g_requestId, 1);
EnableInitLog(INIT_WARN);
PARAM_WORKSPACE_OPS ops = {0};
ops.updaterMode = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册