1195972f6Sopenharmony_ciFrom b7faf0800631668d4d23cb497f1ceeb5948e4a41 Mon Sep 17 00:00:00 2001
2195972f6Sopenharmony_ciFrom: jiangheng <jiangheng12@huawei.com>
3195972f6Sopenharmony_ciDate: Tue, 15 Mar 2022 19:22:22 +0800
4195972f6Sopenharmony_ciSubject: [PATCH] refactor event, if ring is full, the node is added to list
5195972f6Sopenharmony_ci
6195972f6Sopenharmony_ci---
7195972f6Sopenharmony_ci src/include/lwipsock.h | 4 ++++
8195972f6Sopenharmony_ci 1 file changed, 4 insertions(+)
9195972f6Sopenharmony_ci
10195972f6Sopenharmony_cidiff --git a/src/include/lwipsock.h b/src/include/lwipsock.h
11195972f6Sopenharmony_ciindex 355bf47..36bcaed 100644
12195972f6Sopenharmony_ci--- a/src/include/lwipsock.h
13195972f6Sopenharmony_ci+++ b/src/include/lwipsock.h
14195972f6Sopenharmony_ci@@ -104,12 +104,16 @@ struct lwip_sock {
15195972f6Sopenharmony_ci   struct pbuf *send_lastdata; /* unread data in one pbuf */
16195972f6Sopenharmony_ci   void *send_ring;
17195972f6Sopenharmony_ci   int32_t recv_flags;
18195972f6Sopenharmony_ci+  int32_t send_flags;
19195972f6Sopenharmony_ci   bool wait_close;
20195972f6Sopenharmony_ci   int32_t attach_fd;
21195972f6Sopenharmony_ci   struct lwip_sock *shadowed_sock;
22195972f6Sopenharmony_ci   struct list_node attach_list;
23195972f6Sopenharmony_ci   struct list_node listen_list;
24195972f6Sopenharmony_ci   struct list_node recv_list;
25195972f6Sopenharmony_ci+  struct list_node event_list;
26195972f6Sopenharmony_ci+  struct list_node wakeup_list;
27195972f6Sopenharmony_ci+  struct list_node send_list;
28195972f6Sopenharmony_ci   int32_t nextfd; /* listenfd list */
29195972f6Sopenharmony_ci #endif
30195972f6Sopenharmony_ci };
31195972f6Sopenharmony_ci-- 
32195972f6Sopenharmony_ci1.8.3.1
33195972f6Sopenharmony_ci
34