D-Programming-Language/druntime — pull request #206 by alexrp (2012-05-07 21:37:55+00:00)
Title: Use SwitchToThread() on Windows when possible.

This uses a somewhat dirty LoadLibraryA/GetProcAddress hack. While not pretty, it does the trick, and maintains support for whatever ancient Windows versions (2000?) that don't have this function.