<div dir="ltr">On Fri, Mar 8, 2013 at 6:11 AM, Graham Knap <span dir="ltr"><<a href="mailto:graham.knap@gmail.com" target="_blank">graham.knap@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>Michael Stefaniuc wrote:<br>
>> i.e. commit 8099c2b9. JW says "... to more closely resemble Windows<br>
>> behavior.  The key is to yield in a Sleep..."<br>
><br>
> JW is Jeremy White so us old timers chuckle now ;)<br>
<br>
</div>I know the name, but nothing more. Why is this funny?<br></blockquote><div><br></div><div>He's the CEO of Codeweavers, and he's the first one to admit he doesn't write great code, or at least that Alexandre rejects his code a lot :)</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
> If the ancient wisdom isn't backed by tests there's a fair chance that<br>
> it might not be applicable today. Or that it was a wrong theory<br>
<br>
</div>Interesting. Unfortunately, I have no idea how to go about writing<br>
tests for this. Can anyone offer any suggestions?<br></blockquote><div><br></div><div style>It's, well, hard to test. MSDN suggests it was true in XP, but subsequently changed:</div><div style><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms686298(v=vs.85).aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/ms686298(v=vs.85).aspx</a></div>
<div style><br></div><div style>I no longer recall which app it was Jeremy was working on fixing, but there was at least one app that depended on this behavior. See Jeremy's posts on "RFC: yield on Waits" and "Threading issues".</div>
<div style>--Juan</div></div></div></div>