Projects
Eulaceura:Factory
libkae
_service:obs_scm:0002-fix-pthread_yield.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0002-fix-pthread_yield.patch of Package libkae
From f0c7130d9186dbb62367c0eb6c4d2ae6f78ef577 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Thu, 12 Aug 2021 11:49:36 +0800 Subject: [PATCH] pthread_yield is deprecated, use sched_yield instead --- KAE/utils/engine_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KAE/utils/engine_utils.h b/KAE/utils/engine_utils.h index 12a587e..f0b69b2 100644 --- a/KAE/utils/engine_utils.h +++ b/KAE/utils/engine_utils.h @@ -129,7 +129,7 @@ static inline void kae_memcpy(void *src, const void *dst, int len) static inline void kae_pthread_yield() { - (void)pthread_yield(); //lint !e1055 + (void)sched_yield(); //lint !e1055 } int kae_create_thread(pthread_t *thread_id, const pthread_attr_t *attr, -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2