1 Star 0 Fork 14

阿翔与山海经/libvma

forked from openEuler-RISC-V/libvma 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-build-error-with-glibc-2.34.patch 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
wang_yue111 提交于 2021-08-10 10:36 . fix build error with glibc-2.34
From 8796b971e58bf7c224cae800209c5eaa53cf9841 Mon Sep 17 00:00:00 2001
From: Igor Ivanov <[email protected]>
Date: Thu, 17 Jun 2021 16:07:31 +0300
Subject: [PATCH] issue: 2485156 Fix fc35 issues
- glibc:
The function pthread_yield has been deprecated; programs should use
the equivalent standard function sched_yield instead.
Signed-off-by: Igor Ivanov <[email protected]>
---
src/vma/iomux/epfd_info.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/vma/iomux/epfd_info.cpp b/src/vma/iomux/epfd_info.cpp
index c7670c7b3..d7c6c4fcd 100644
--- a/src/vma/iomux/epfd_info.cpp
+++ b/src/vma/iomux/epfd_info.cpp
@@ -624,7 +624,7 @@ int epfd_info::ring_poll_and_process_element(uint64_t *p_poll_sn, void* pv_fd_re
m_ring_map_lock.unlock();
- if (m_sysvar_thread_mode == THREAD_MODE_PLENTY && ret_total == 0 && errno == EAGAIN) pthread_yield();
+ if (m_sysvar_thread_mode == THREAD_MODE_PLENTY && ret_total == 0 && errno == EAGAIN) sched_yield();
if (ret_total) {
__log_func("ret_total=%d", ret_total);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/a-xiang-and-shanhaijing/libvma.git
[email protected]:a-xiang-and-shanhaijing/libvma.git
a-xiang-and-shanhaijing
libvma
libvma
master

搜索帮助