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

Origin commit data
------------------
Commit: 45623aa810
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-28 (Sat, 28 Feb 2015)
This commit is contained in:
2015-02-28 23:22:19 +01:00
parent 0652b6ab05
commit ff6e864019

View File

@@ -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;