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:
parent
ba213c1fa0
commit
26798eb312
@ -141,7 +141,7 @@ namespace dxvk {
|
||||
|
||||
namespace this_thread {
|
||||
inline void yield() {
|
||||
Sleep(0);
|
||||
SwitchToThread();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user