diff options
author | Jasmin Jessich <jasmin@anw.at> | 2017-06-09 23:36:48 +0200 |
---|---|---|
committer | Jasmin Jessich <jasmin@anw.at> | 2017-06-09 23:36:48 +0200 |
commit | 5e9bd5cf83b8a7312e3c6543f757bf723e342e8e (patch) | |
tree | b26304aa0bd5bf135cdc279550a3c0a40a30fbd5 /status.cpp | |
parent | c430d84a28a320ad91fd42d6d108d30812fd5c8c (diff) | |
download | vdr-plugin-live-5e9bd5cf83b8a7312e3c6543f757bf723e342e8e.tar.gz vdr-plugin-live-5e9bd5cf83b8a7312e3c6543f757bf723e342e8e.tar.bz2 |
Update internal timer list if VDR timers have been changed
- New function StatusMonitor::TimerChange.
- New function TimerManager::SetReloadTimers.
- VDR will execute TimerChange which will use SetReloadTimers to
store a timer update needs to be done. Later TimerManager::DoPendingWork
will reload the actual timers from VDR.
- Added missing locking to StatusMonitor functions.
Diffstat (limited to 'status.cpp')
-rw-r--r-- | status.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -8,9 +8,16 @@ namespace vdrlive { StatusMonitor::StatusMonitor() { } - + +void StatusMonitor::TimerChange(const cTimer *Timer, eTimerChange Change) +{ + cMutexLock timersLock( &LiveTimerManager() ); + LiveTimerManager().SetReloadTimers(); +} + void StatusMonitor::Recording( cDevice const*, char const*, char const*, bool ) { + cMutexLock timersLock( &LiveTimerManager() ); LiveTimerManager().DoReloadTimers(); } |