mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
try to fix tm thread
This commit is contained in:
@@ -43,11 +43,11 @@ CComponentsTimer::CComponentsTimer(const int& interval, bool is_nano)
|
|||||||
tm_thread = 0;
|
tm_thread = 0;
|
||||||
tm_interval = interval;
|
tm_interval = interval;
|
||||||
tm_enable_nano = is_nano;
|
tm_enable_nano = is_nano;
|
||||||
|
tm_enable = false;
|
||||||
sl_stop_timer = sigc::mem_fun(*this, &CComponentsTimer::stopTimer);
|
sl_stop_timer = sigc::mem_fun(*this, &CComponentsTimer::stopTimer);
|
||||||
|
|
||||||
if (interval > 0)
|
if (interval > 0)
|
||||||
startTimer();
|
tm_enable = startTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
CComponentsTimer::~CComponentsTimer()
|
CComponentsTimer::~CComponentsTimer()
|
||||||
@@ -132,12 +132,11 @@ void CComponentsTimer::stopThread()
|
|||||||
|
|
||||||
bool CComponentsTimer::startTimer()
|
bool CComponentsTimer::startTimer()
|
||||||
{
|
{
|
||||||
tm_enable = true;
|
|
||||||
initThread();
|
initThread();
|
||||||
if(tm_thread)
|
if(tm_thread)
|
||||||
return true;
|
tm_enable = true;
|
||||||
|
|
||||||
return false;
|
return tm_enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CComponentsTimer::stopTimer()
|
bool CComponentsTimer::stopTimer()
|
||||||
|
Reference in New Issue
Block a user