From 7f9432fe4193dae2f2080407c7364b099300c2dd Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sat, 8 Jan 2011 13:07:43 +0100 Subject: moved from cMutexLock to direct mutex locking/unlocking to unlock switchtimers as soon as possible --- switchtimer_thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'switchtimer_thread.c') diff --git a/switchtimer_thread.c b/switchtimer_thread.c index 732768f..9af39aa 100644 --- a/switchtimer_thread.c +++ b/switchtimer_thread.c @@ -81,7 +81,7 @@ void cSwitchTimerThread::Action(void) if (now >= nextUpdate) { LogFile.Log(3,"locking switch timers"); - cMutexLock SwitchTimersLock(&SwitchTimers); + SwitchTimers.Lock(); LogFile.Log(3,"switch timer check started"); cSwitchTimer* switchTimer = SwitchTimers.First(); while (switchTimer && m_Active) @@ -136,6 +136,7 @@ void cSwitchTimerThread::Action(void) } switchTimer = SwitchTimers.Next(switchTimer); } + SwitchTimers.Unlock(); LogFile.Log(3,"switch timer check finished"); if (m_Active) Wait.Wait(1000 * MSG_DELAY); -- cgit v1.2.3