diff options
author | horchi <vdr@jwendel.de> | 2017-06-22 05:55:33 +0200 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-06-22 05:55:33 +0200 |
commit | 1ab2b56758d06c5460a25cd55ce471c98ee78d72 (patch) | |
tree | fd1ab5730202d0933f8f630384420403ea9a11c5 /timer.c | |
parent | 82d4eb0fb393cb3f8b8526355dfc8c2ede48adff (diff) | |
download | vdr-plugin-epg2vdr-1ab2b56758d06c5460a25cd55ce471c98ee78d72.tar.gz vdr-plugin-epg2vdr-1ab2b56758d06c5460a25cd55ce471c98ee78d72.tar.bz2 |
2017-06-22 version 1.1.69 (horchi)\n - change: More rework of lock handling\n\n1.1.69
Diffstat (limited to 'timer.c')
-rw-r--r-- | timer.c | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -66,27 +66,8 @@ int cUpdate::performTimerJobs() selectPendingTimerActions->freeResult(); } - // get timers lock - -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) - LOCK_TIMERS_WRITE; - cTimers* timers = Timers; - // cTimersLock timersLock(true); - // cTimers* timers = timersLock.Timers(); -#else - cTimers* timers = &Timers; -#endif - - // get channels lock - -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) - LOCK_CHANNELS_WRITE; - const cChannels* channels = Channels; - // cChannelsLock channelsLock(false); - // const cChannels* channels = channelsLock.Channels(); -#else - cChannels* channels = &Channels; -#endif + GET_TIMERS_WRITE(timers); // get timers lock + GET_CHANNELS_READ(channels); // get channels lock // get schedules lock |