mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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