summaryrefslogtreecommitdiff
path: root/timer.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-06-22 05:55:33 +0200
committerhorchi <vdr@jwendel.de>2017-06-22 05:55:33 +0200
commit1ab2b56758d06c5460a25cd55ce471c98ee78d72 (patch)
treefd1ab5730202d0933f8f630384420403ea9a11c5 /timer.c
parent82d4eb0fb393cb3f8b8526355dfc8c2ede48adff (diff)
downloadvdr-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.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/timer.c b/timer.c
index de44862..5faa03f 100644
--- a/timer.c
+++ b/timer.c
@@ -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