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 /lib/vdrlocks.h | |
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 'lib/vdrlocks.h')
-rw-r--r-- | lib/vdrlocks.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/lib/vdrlocks.h b/lib/vdrlocks.h index a3a1f2b..5032f09 100644 --- a/lib/vdrlocks.h +++ b/lib/vdrlocks.h @@ -31,12 +31,41 @@ # define GET_TIMERS_WRITE(name) cTimers* name = &Timers; #endif - //*************************************************************************** // Channel List Lock Macros //*************************************************************************** +#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +# define GET_CHANNELS_READ(name) USE_LIST_LOCK_READ(Channels); \ + const cChannels* name = Channels; +#else +# define GET_CHANNELS_READ(name) cChannels* name = &Channels; +#endif + +#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +# define GET_CHANNELS_WRITE(name) USE_LIST_LOCK_WRITE(Channels); \ + cChannels* name = Channels; +#else +# define GET_CHANNELS_WRITE(name) cChannels* name = &Channels; +#endif + +//*************************************************************************** +// Recording List Lock Macros +//*************************************************************************** + +#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +# define GET_RECORDINGS_READ(name) USE_LIST_LOCK_READ(Recordings); \ + const cRecordings* name = Recordings; +#else +# define GET_RECORDINGS_READ(name) cRecordings* name = &Recordings; +#endif +#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +# define GET_RECORDINGS_WRITE(name) USE_LIST_LOCK_WRITE(Recordings); \ + cRecordings* name = Recordings; +#else +# define GET_RECORDINGS_WRITE(name) cRecordings* name = &Recordings; +#endif //*************************************************************************** # endif // VDR_PLUGIN |