1 Star 0 Fork 48

flying-eagle/lwip

forked from src-openEuler/lwip 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0045-add-variable-in-struct-sock.patch 767 Bytes
一键复制 编辑 原始数据 按行查看 历史
吴昌盛 提交于 2022-12-20 14:54 . add-variable-in-struct-sock
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/flying-eagle12138/lwip.git
git@gitee.com:flying-eagle12138/lwip.git
flying-eagle12138
lwip
lwip
master

搜索帮助