From 9b29a67af93e4ab9948cc60f743d73c4bb39e738 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 20 十月 2020 16:46:55 +0800 Subject: [PATCH] update --- 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