ThreadPool now working with no memory leaks

This commit is contained in:
Dynamitos
2022-02-14 16:29:26 +01:00
parent 6d48267ec2
commit 5268bb68e2
15 changed files with 287 additions and 97 deletions
+3 -2
View File
@@ -1,5 +1,5 @@
#pragma once
#include <vld.h>
//#include <vld.h>
#include "ThreadPool.h"
namespace Seele
@@ -8,10 +8,11 @@ namespace Seele
{
GlobalFixture()
{
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
//_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
}
~GlobalFixture()
{
getGlobalThreadPool().cleanup();
}
void setup()
{