From 00e2a4d8f46a67f2eb5549fc9be6631c1e142490 Mon Sep 17 00:00:00 2001 From: Jasmin Jessich Date: Sat, 17 Jun 2017 23:38:14 +0200 Subject: 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. --- timers.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'timers.h') 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 -- cgit v1.2.3