CComponentsTimer: move mySleep call into mutex block, seems was not ok so

This commit is contained in:
2015-02-28 23:22:19 +01:00
parent eb3971e909
commit 45623aa810

View File

@@ -61,8 +61,8 @@ void* CComponentsTimer::initTimerThread(void *arg)
while(timer) {
timer->mutex.lock();
timer->OnTimer();
timer->mutex.unlock();
mySleep(timer->tm_interval);
timer->mutex.unlock();
}
return 0;