neutrino.h: change return type of signal OnBeforeRestart

unifiy with other signals


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4ca8905f4e
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-05-06 (Mon, 06 May 2019)



------------------
This commit was generated by Migit
This commit is contained in:
2019-05-06 19:31:39 +02:00
committed by vanhofen
parent 7cc86f21e4
commit 1a60c020da
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>