qt/qt_main.cpp: Use plat_delay_ms(1) instead of thread sleeping, closes #5066.
This commit is contained in:
@@ -149,7 +149,12 @@ main_thread_fn()
|
|||||||
if (dopause)
|
if (dopause)
|
||||||
ack_pause();
|
ack_pause();
|
||||||
|
|
||||||
|
#ifdef USE_THREAD_SLEEP
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
|
#else
|
||||||
|
timeBeginPeriod(1);
|
||||||
|
plat_delay_ms(1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user