Init. Map does not function and only working on backend at the moment.

This commit is contained in:
eetnaviation
2024-03-15 22:15:20 +02:00
commit d521b9db0c
1488 changed files with 252767 additions and 0 deletions

19
node_modules/sleep/sleep_win.cc generated vendored Normal file
View File

@ -0,0 +1,19 @@
#include "sleep.h"
#if ( defined _WIN32 || defined _WIN64 ) && ( !NAN_HAS_CPLUSPLUS_11 )
#include <windows.h>
void node_usleep(uint32_t usec) {
LARGE_INTEGER li;
li.QuadPart = -10LL * usec; // negative values for relative time
HANDLE timer = CreateWaitableTimer(NULL, TRUE, NULL);
if(!timer) return;
SetWaitableTimer(timer, &li, 0, NULL, NULL, 0);
WaitForSingleObject(timer, INFINITE);
CloseHandle(timer);
}
#endif