Commit b1a79c6b authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

ntdll: Implement NtYieldExecution() as usleep().

parent ae1f9899
......@@ -17913,7 +17913,6 @@ for ac_func in \
posix_fallocate \
prctl \
proc_pidinfo \
sched_yield \
setproctitle \
setprogname \
sigprocmask \
......
......@@ -2145,7 +2145,6 @@ AC_CHECK_FUNCS(\
posix_fallocate \
prctl \
proc_pidinfo \
sched_yield \
setproctitle \
setprogname \
sigprocmask \
......
......@@ -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
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment