neutrino.h: change return type of signal OnBeforeRestart

unifiy with other signals
This commit is contained in:
2019-05-05 20:30:56 +02:00
parent cbbf68e2f4
commit 679f929a6b
3 changed files with 3 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ void CComponentsTimer::initThread()
dprintf(DEBUG_DEBUG,"\033[33m[CComponentsTimer] [%s - %d] started thread ID:%ld \033[0m\n", __func__, __LINE__, pthread_self());
if (res == 0)
CNeutrinoApp::getInstance()->OnBeforeRestart.connect(sl_stop_timer);
CNeutrinoApp::getInstance()->OnBeforeRestart.connect(sigc::retype_return<void>(sl_stop_timer));
}
}

View File

@@ -30,6 +30,7 @@
#endif
#include <sigc++/signal.h>
#include <sigc++/adaptors/retype_return.h>
#include <OpenThreads/ScopedLock>
#include <OpenThreads/Thread>
#include <OpenThreads/Condition>