wangzhengquan
2021-02-20 8bfe9f711612efde96a0d7b7aa3ba7178ab51640
Merge branch 'master' into dev
4个文件已修改
20 ■■■■■ 已修改文件
src/net/net_mod_socket.cpp 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/net/net_mod_socket_wrapper.cpp 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/socket/shm_socket.cpp 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test_net_socket/test_net_mod_socket.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/net/net_mod_socket.cpp
@@ -40,12 +40,12 @@
NetModSocket::~NetModSocket() {
  int s;
  // int s;
  // delete gpool;
  // s =  pthread_mutex_destroy(&sendMutex);
  if(s != 0) {
    err_exit(s, "shm_socket_close");
  }
  // if(s != 0) {
  //   err_exit(s, "shm_socket_close");
  // }
}
src/net/net_mod_socket_wrapper.cpp
@@ -16,8 +16,8 @@
 * 关闭
 */
void net_mod_socket_close(void *_socket) {
    // NetModSocket *sockt = (NetModSocket *)_socket;
    // delete sockt;
    NetModSocket *sockt = (NetModSocket *)_socket;
    delete sockt;
}
 
int net_mod_socket_stop(void *_socket) {
src/socket/shm_socket.cpp
@@ -118,10 +118,8 @@
  //   sockt->queue = NULL;
  // }
  rv =  pthread_mutex_destroy(&(sockt->mutex) );
  if(rv != 0) {
    err_exit(rv, "shm_socket_close");
  }
  pthread_mutex_destroy(&(sockt->mutex) );
  free(sockt);
test_net_socket/test_net_mod_socket.cpp
@@ -618,7 +618,7 @@
  }
  printf("==========end========\n");
  shm_mm_wrapper_destroy();
  // shm_mm_wrapper_destroy();
}