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:
parent
ae1f9899bb
commit
b1a79c6b9c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue