aports/testing/virtualbox/musl-sched_yield.patch
Díaz Urbaneja Víctor Diego Alejandro (Sodomon) d48dd8be9d testing/virtualbox: new aport
General-purpose full virtualizer for x86 hardware.
https://www.virtualbox.org
2024-06-21 07:04:08 +00:00

29 lines
No EOL
983 B
Diff

--- a/src/VBox/Runtime/r3/posix/thread2-posix.cpp
+++ b/src/VBox/Runtime/r3/posix/thread2-posix.cpp
@@ -63,7 +63,7 @@
#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
sched_yield();
#else
- if (!pthread_yield())
+ if (!sched_yield())
#endif
{
LogFlow(("RTThreadSleep: returning %Rrc (cMillies=%d)\n", VINF_SUCCESS, cMillies));
@@ -100,7 +100,7 @@
#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
sched_yield();
#else
- if (!pthread_yield())
+ if (!sched_yield())
#endif
return VINF_SUCCESS;
}
@@ -129,7 +129,7 @@
#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
sched_yield();
#else
- pthread_yield();
+ sched_yield();
#endif
#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
u64TS = ASMReadTSC() - u64TS;