Graham graham.knap@gmail.com writes:
This patch is vaguely related to bug 24558. It eliminates a few syscalls in NtDelayExecution:
- If the caller requests a zero-wait yield, then do just that, and
nothing more.
That's what the existing code already does.
- 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.