[phobos] Sleep(0) vs Sleep(1) for yield

SK sk at metrokings.com
Sun Sep 5 14:28:38 PDT 2010


On Sun, Sep 5, 2010 at 1:46 PM, David Simcha <dsimcha at gmail.com> wrote:
>  Good point.  I guess maybe a shared static this statement that initializes
> an immutable variable to either 0 or 1?
>
> On 9/5/2010 4:07 PM, Brad Roberts wrote:
>>
>> It probably shouldn't be done via a version statement as that's purely a
>> compile
>> time decisions.  Runtime would allow apps to choose behavior based on
>> where they
>> run.
>>

Is this the first case in phobos where the Windows version has mattered?


More information about the phobos mailing list