Refactor sleep handling and WASM task termination; consolidate platform-specific sleep functions and improve task cleanup logic

This commit is contained in:
Lukas Höppner
2026-08-12 14:25:21 +02:00
parent b04ba14891
commit bc78ce3534
6 changed files with 35 additions and 37 deletions
+10
View File
@@ -9,4 +9,14 @@ const nova64_io_interface_t *nova64_get_io_interface(void);
void nova64_log_scheduler_state(void);
#if defined(_WIN32)
#include <windows.h>
#define nova64_host_sleep_ms(ms) Sleep(ms)
#elif defined(__unix__) || defined(__APPLE__)
#include <unistd.h>
#define nova64_host_sleep_ms(ms) usleep((ms) * 1000)
#else
#define nova64_host_sleep_ms(ms) ((void)0)
#endif
#endif // NOVA64_INTERNAL_H