26 lines
762 B
Diff
26 lines
762 B
Diff
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
|
|
|