1 Star 0 Fork 103

hos-learning/third_party_lwip

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
0045-add-variable-in-struct-sock.patch 767 Bytes
一键复制 编辑 原始数据 按行查看 历史
Aurora 提交于 2023-12-07 03:26 . update lwip to 2.1.3-39.oe2203sp1
From 1ede4a00c1eca575314af02374846cb086798c08 Mon Sep 17 00:00:00 2001
From: wu-changsheng <wuchangsheng2@huawei.com>
Date: Tue, 20 Dec 2022 14:37:21 +0800
Subject: [PATCH] add variable in struct sock
---
src/include/lwipsock.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/include/lwipsock.h b/src/include/lwipsock.h
index ec4d78c..8924728 100644
--- a/src/include/lwipsock.h
+++ b/src/include/lwipsock.h
@@ -105,8 +105,7 @@ struct lwip_sock {
char pad1 __rte_cache_aligned;
/* app and stack thread all use */
uint32_t in_send; /* avoid sock too much send rpc msg*/
- pthread_spinlock_t sock_lock;
-
+ bool read_wait;
char pad2 __rte_cache_aligned;
/* stack thread all use */
struct list_node recv_list;
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hos-learning/third_party_lwip.git
git@gitee.com:hos-learning/third_party_lwip.git
hos-learning
third_party_lwip
third_party_lwip
master

搜索帮助