Skip to content
Snippets Groups Projects
Commit e86b4015 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard
Browse files

ntdll: Call usleep() instead of NtYieldExecution() in NtDelayExecution().


This implements the general fix from
b1a79c6b (in particular, making sure
that Sleep(0) will not immediately resume execution of the thread if
there are no other runnable threads) while preserving the existing
behavior of NtYieldExecution() / SwitchToThread(). Thanks Rémi for the
idea.

Signed-off-by: default avatarMatteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 3203f056
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment