mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
CComponentsTimer: move mySleep call into mutex block, seems was not ok so
This commit is contained in:
@@ -61,8 +61,8 @@ void* CComponentsTimer::initTimerThread(void *arg)
|
|||||||
while(timer) {
|
while(timer) {
|
||||||
timer->mutex.lock();
|
timer->mutex.lock();
|
||||||
timer->OnTimer();
|
timer->OnTimer();
|
||||||
timer->mutex.unlock();
|
|
||||||
mySleep(timer->tm_interval);
|
mySleep(timer->tm_interval);
|
||||||
|
timer->mutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user