logic: terminating all running tasks before closing the application (issue #343)

This commit is contained in:
malte_langkabel
2017-04-12 10:46:56 +02:00
parent 0e4b606c7c
commit 6e342fa87c
23 changed files with 127 additions and 25 deletions
+5
View File
@@ -1,5 +1,10 @@
#include "utility/ScopedFunctor.h"
ScopedFunctor::ScopedFunctor()
: m_onDestroy([](){})
{
}
ScopedFunctor::ScopedFunctor(std::function<void(void)> onDestroy)
: m_onDestroy(onDestroy)
{