From f8c7aec85fdbf6b98fbb6ff50d98733b79c26dad Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期四, 26 十一月 2020 10:29:04 +0800 Subject: [PATCH] udpate --- src/socket/shm_socket.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/socket/shm_socket.h b/src/socket/shm_socket.h index fd67d9c..4f1efc2 100644 --- a/src/socket/shm_socket.h +++ b/src/socket/shm_socket.h @@ -56,6 +56,7 @@ // 鏈湴port int port; bool force_bind; + int mutex; shm_connection_status_t status; SHMQueue<shm_msg_t> *queue; SHMQueue<shm_msg_t> *remoteQueue; @@ -99,6 +100,13 @@ int shm_sendandrecv(shm_socket_t *socket, const void *send_buf, const int send_size, const int send_port, void **recv_buf, int *recv_size, struct timespec * timeout = NULL, int flags=0); +/** + * 鍔熻兘鍚宻hm_sendandrecv, 浣嗘槸涓嶆槸绾跨▼瀹夊叏鐨� + */ +int shm_sendandrecv_unsafe(shm_socket_t *socket, const void *send_buf, const int send_size, const int send_port, void **recv_buf, int *recv_size, + struct timespec * timeout = NULL, int flags=0); + + #endif \ No newline at end of file -- Gitblit v1.8.0