diff options
| author | Christian Wieninger <cwieninger@gmx.de> | 2011-01-08 13:07:43 +0100 |
|---|---|---|
| committer | Christian Wieninger <cwieninger@gmx.de> | 2011-01-08 13:07:43 +0100 |
| commit | 7f9432fe4193dae2f2080407c7364b099300c2dd (patch) | |
| tree | ee5027563733bf5244ef00c5b39d151b0564195b | |
| parent | 04033561c463fec026f18ea37d34a7250705a086 (diff) | |
| download | vdr-plugin-epgsearch-7f9432fe4193dae2f2080407c7364b099300c2dd.tar.gz vdr-plugin-epgsearch-7f9432fe4193dae2f2080407c7364b099300c2dd.tar.bz2 | |
moved from cMutexLock to direct mutex locking/unlocking to unlock switchtimers as soon as possible
| -rw-r--r-- | switchtimer_thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
