RFC: yield on Waits

Jeremy White jwhite at codeweavers.com
Tue Nov 2 11:18:55 CST 2004

Hmm.  My own test program has a clear demonstration that this
isn't quite right; a 'sleep2 -1 10we' shows that having an
event trigger a wait gets the waiting thread some priority back.

This suggests that adding
        if (ret == WAIT_TIMEOUT)
prior to the NtYieldExecution() gives the best results.


More information about the wine-devel mailing list