Use Sleep(0) instead of yield() on Win32.