From 3188b044aff49472e5eedc5e9eeefb9a6608b45b Mon Sep 17 00:00:00 2001 From: Yimura Date: Sat, 18 Sep 2021 22:09:07 +0200 Subject: [PATCH] feat(Main): Init and destroy thread pool --- BigBaseV2/src/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/BigBaseV2/src/main.cpp b/BigBaseV2/src/main.cpp index cbc3fbbc..c0199a52 100644 --- a/BigBaseV2/src/main.cpp +++ b/BigBaseV2/src/main.cpp @@ -7,6 +7,7 @@ #include "pointers.hpp" #include "renderer.hpp" #include "script_mgr.hpp" +#include "thread_pool.hpp" BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID) { @@ -40,6 +41,9 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID) g.load(); LOG(INFO) << "Settings Loaded."; + auto thread_pool_instance = std::make_unique(); + LOG(INFO) << "Thread pool initialized."; + g_script_mgr.add_script(std::make_unique