Use SleepEx() instead of WaitForSingleObjectEx() to implement PltSleepMs()
This was legacy cruft from back when Sleep() was forbidden in Metro apps in Win8.0.
This commit is contained in:
parent
c057075eac
commit
daee5db7bc
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ void* ThreadProc(void* context) {
|
||||||
|
|
||||||
void PltSleepMs(int ms) {
|
void PltSleepMs(int ms) {
|
||||||
#if defined(LC_WINDOWS)
|
#if defined(LC_WINDOWS)
|
||||||
WaitForSingleObjectEx(GetCurrentThread(), ms, FALSE);
|
SleepEx(ms, FALSE);
|
||||||
#elif defined(__vita__)
|
#elif defined(__vita__)
|
||||||
sceKernelDelayThread(ms * 1000);
|
sceKernelDelayThread(ms * 1000);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue