summaryrefslogtreecommitdiff
path: root/timers.h
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-06-17 23:38:14 +0200
committerJasmin Jessich <jasmin@anw.at>2017-06-17 23:38:14 +0200
commit00e2a4d8f46a67f2eb5549fc9be6631c1e142490 (patch)
tree80430c7cfceaec2b2da85713ea42f6f10cbd9eb7 /timers.h
parent9bebbad537dfedc7d143b35d1d01dc9cc7b68b5f (diff)
downloadvdr-plugin-live-00e2a4d8f46a67f2eb5549fc9be6631c1e142490.tar.gz
vdr-plugin-live-00e2a4d8f46a67f2eb5549fc9be6631c1e142490.tar.bz2
Use a cStateKey for SortedTimers::Modified changed detection
- Added SortedTimers::m_TimersStateKey to store the last timers list state. - SortedTimers::Modified uses now the new m_TimersStateKey to check, if the list has been modified.
Diffstat (limited to 'timers.h')
-rw-r--r--timers.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/timers.h b/timers.h
index 5f62f76..1fc86ff 100644
--- a/timers.h
+++ b/timers.h
@@ -35,9 +35,15 @@ namespace vdrlive {
SortedTimers();
SortedTimers( SortedTimers const& );
+ cMutex m_mutex;
+
+#if VDRVERSNUM >= 20301
+ cStateKey m_TimersStateKey;
+#else
int m_state;
+#endif
- void ReloadTimers( bool initial = false );
+ void ReloadTimers();
};
class TimerManager: public cMutex