From 37989e0300c20cd65a4d4a3c49eeaea2122ddf9e Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期一, 20 七月 2020 10:28:02 +0800 Subject: [PATCH] update --- queue/shm_socket.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/queue/shm_socket.c b/queue/shm_socket.c index 9d6202b..4fb90cf 100644 --- a/queue/shm_socket.c +++ b/queue/shm_socket.c @@ -112,10 +112,10 @@ socket->queue = new SHMQueue<shm_msg_t>(socket->port, 16); socket->acceptQueue = new LockFreeQueue<shm_msg_t, DM_Allocator>(16); socket->clientSocketMap = new std::map<int, shm_socket_t* >; - + socket->status = SHM_CONN_LISTEN; pthread_create(&(socket->dispatch_thread), NULL, _server_run_msg_rev , (void *)socket); - socket->status = SHM_CONN_LISTEN; + return 0; } -- Gitblit v1.8.0