• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From b7faf0800631668d4d23cb497f1ceeb5948e4a41 Mon Sep 17 00:00:00 2001
2From: jiangheng <jiangheng12@huawei.com>
3Date: Tue, 15 Mar 2022 19:22:22 +0800
4Subject: [PATCH] refactor event, if ring is full, the node is added to list
5
6---
7 src/include/lwipsock.h | 4 ++++
8 1 file changed, 4 insertions(+)
9
10diff --git a/src/include/lwipsock.h b/src/include/lwipsock.h
11index 355bf47..36bcaed 100644
12--- a/src/include/lwipsock.h
13+++ b/src/include/lwipsock.h
14@@ -104,12 +104,16 @@ struct lwip_sock {
15   struct pbuf *send_lastdata; /* unread data in one pbuf */
16   void *send_ring;
17   int32_t recv_flags;
18+  int32_t send_flags;
19   bool wait_close;
20   int32_t attach_fd;
21   struct lwip_sock *shadowed_sock;
22   struct list_node attach_list;
23   struct list_node listen_list;
24   struct list_node recv_list;
25+  struct list_node event_list;
26+  struct list_node wakeup_list;
27+  struct list_node send_list;
28   int32_t nextfd; /* listenfd list */
29 #endif
30 };
31--
321.8.3.1
33
34