From 124011574583b980c1794a1de4e61b39f73f1f11 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 14 一月 2021 16:44:49 +0800
Subject: [PATCH] Merge branch 'dev' into rdma

---
 src/socket/net_mod_socket.h |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/socket/net_mod_socket.h b/src/socket/net_mod_socket.h
index ce45aa6..19bb2b2 100644
--- a/src/socket/net_mod_socket.h
+++ b/src/socket/net_mod_socket.h
@@ -5,7 +5,7 @@
 #include "socket_io.h"
 #include <poll.h>
 #include "socket_def.h"
-
+#include "net_conn_pool.h"
 
 
 class NetModServerSocket;
@@ -63,7 +63,9 @@
    
   ShmModSocket shmModSocket;
   // pool req_resp_pool;
- 
+  NetConnPool *gpool;
+
+  pthread_mutex_t sendMutex;
 
   // request header 缂栫爜涓虹綉缁滀紶杈撶殑瀛楄妭
   static void * encode_request_head(net_mod_request_head_t & request);
@@ -78,6 +80,10 @@
   // 鍒涘缓thread local key
   static void _createConnPoolKey_(void);
 
+
+  NetConnPool* _get_threadlocal_pool();
+  NetConnPool* _get_pool();
+
   //璇诲彇杩斿洖淇℃伅
   int read_response(int clientfd, net_mod_recv_msg_t *recv_msg);
   // 鍙戦�佽姹備俊鎭�

--
Gitblit v1.8.0