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

20
node_modules/sleep/sleep_cpp11.cc generated vendored Normal file
View File

@ -0,0 +1,20 @@
#include "sleep.h"
#if NAN_HAS_CPLUSPLUS_11
#include <thread>
#include <chrono>
void node_usleep(uint32_t usec) {
auto end = std::chrono::steady_clock::now() + std::chrono::microseconds(usec);
while (true) {
auto now = std::chrono::steady_clock::now();
if (now >= end) {
break;
}
std::this_thread::sleep_for(end - now);
}
}
#endif