ntdll: Implement NtYieldExecution() as usleep().

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2021-10-06 15:53:57 +02:00 committed by Alexandre Julliard
parent ae1f9899bb
commit b1a79c6b9c
4 changed files with 1 additions and 10 deletions

1
configure vendored
View File

@ -17913,7 +17913,6 @@ for ac_func in \
posix_fallocate \
prctl \
proc_pidinfo \
sched_yield \
setproctitle \
setprogname \
sigprocmask \

View File

@ -2145,7 +2145,6 @@ AC_CHECK_FUNCS(\
posix_fallocate \
prctl \
proc_pidinfo \
sched_yield \
setproctitle \
setprogname \
sigprocmask \

View File

@ -1505,12 +1505,8 @@ NTSTATUS WINAPI NtSignalAndWaitForSingleObject( HANDLE signal, HANDLE wait,
*/
NTSTATUS WINAPI NtYieldExecution(void)
{
#ifdef HAVE_SCHED_YIELD
sched_yield();
usleep(0);
return STATUS_SUCCESS;
#else
return STATUS_NO_YIELD_PERFORMED;
#endif
}

View File

@ -519,9 +519,6 @@
/* Define to 1 if you have the `sched_setaffinity' function. */
#undef HAVE_SCHED_SETAFFINITY
/* Define to 1 if you have the `sched_yield' function. */
#undef HAVE_SCHED_YIELD
/* Define to 1 if `cmd' is a member of `scsireq_t'. */
#undef HAVE_SCSIREQ_T_CMD