Implement Reset signal

This commit is contained in:
Dennis Klein
2019-02-26 17:08:53 +01:00
committed by Dennis Klein
parent 241bf08337
commit ee890a7a46
3 changed files with 7 additions and 2 deletions

View File

@@ -54,9 +54,13 @@ auto Context::InitThreadPool(int numberIoThreads) -> void
}
}
Context::~Context()
auto Context::Reset() -> void
{
fIoContext.stop();
}
Context::~Context()
{
for (auto& thread : fThreadPool)
thread.join();
}