ntdll: make NtDelayExecution a bit more efficient

Alexandre Julliard julliard at winehq.org
Wed Mar 6 04:49:10 CST 2013


Graham <graham.knap at gmail.com> writes:

> This patch is vaguely related to bug 24558. It eliminates a few
> syscalls in NtDelayExecution:
>
> 1. If the caller requests a zero-wait yield, then do just that, and
> nothing more.

That's what the existing code already does.

> 2. If you're about to block on select(), then I don't see any point in
> preceding that with a call to sched_yield().

This was added for a reason; most likely you'll have to write tests.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list