We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 521bd30 commit fa917ebCopy full SHA for fa917eb
1 file changed
Common/TimeUtil.cpp
@@ -268,10 +268,7 @@ void sleep_ms(int ms, const char *reason) {
268
#elif defined(HAVE_LIBNX)
269
svcSleepThread(ms * 1000000);
270
#elif defined(__EMSCRIPTEN__)
271
- if (emscripten_is_main_browser_thread())
272
- emscripten_sleep(ms);
273
- else
274
- emscripten_thread_sleep(ms);
+ emscripten_thread_sleep(ms);
275
#else
276
usleep(ms * 1000);
277
#endif
@@ -289,10 +286,7 @@ void sleep_us(int us, const char *reason) {
289
286
290
287
svcSleepThread(us * 1000);
291
288
292
293
- emscripten_sleep(us / 1000);
294
295
- emscripten_thread_sleep(us / 1000);
+ emscripten_thread_sleep(us / 1000);
296
297
usleep(us);
298
0 commit comments