#include #include #include "TestApp.hpp" using namespace std; int main(int argc, char* argv[]){ static semaphore sem; signal(SIGINT, [](int) { sem.post(); NoticeCenter::Instance().emitEvent(NOTICE_DESTROY); }); Logger::Instance().add(std::make_shared()); Logger::Instance().setWriter(std::make_shared()); gsd::TestApp::Ptr app = gsd::TestApp::CreateNew(); if(app == nullptr){ ErrorL << "App unable to create"<Init()==false){ ErrorL << "Failed to start task"<StartTask(); sem.wait(); InfoL<<"app Destroy"<Destroy(); return 0; }