1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 04:54:15 +01:00

[util] Use SwitchToThread for yield

According to MSDN, this doesn't interfere with scheduling of other threads,
unlike Sleep(0).
This commit is contained in:
Philip Rebohle 2020-03-14 22:45:01 +01:00 committed by Philip Rebohle
parent ba213c1fa0
commit 26798eb312

View File

@ -141,7 +141,7 @@ namespace dxvk {
namespace this_thread {
inline void yield() {
Sleep(0);
SwitchToThread();
}
}
}