Added sleep in program loop
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include "Version.h"
|
#include "Version.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
std::vector<std::string> lua_scripts_in_folder(const std::string& path_str) {
|
std::vector<std::string> lua_scripts_in_folder(const std::string& path_str) {
|
||||||
std::vector<std::string> scripts;
|
std::vector<std::string> scripts;
|
||||||
@@ -105,7 +106,10 @@ int main(int argc, char* argv[]) {
|
|||||||
|
|
||||||
spdlog::info("All services loaded.");
|
spdlog::info("All services loaded.");
|
||||||
|
|
||||||
while (true) {}
|
while (true) {
|
||||||
|
using namespace std::chrono_literals;
|
||||||
|
std::this_thread::sleep_for(100ms);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user