mirror of
https://github.com/86Box/86Box.git
synced 2025-01-22 17:22:25 -05:00
qt/qt_main.cpp: Use plat_delay_ms(1) instead of thread sleeping, closes #5066.
This commit is contained in:
parent
4297d72a89
commit
8db59e3c5c
1 changed files with 5 additions and 0 deletions
|
@ -149,7 +149,12 @@ main_thread_fn()
|
|||
if (dopause)
|
||||
ack_pause();
|
||||
|
||||
#ifdef USE_THREAD_SLEEP
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
#else
|
||||
timeBeginPeriod(1);
|
||||
plat_delay_ms(1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue