summaryrefslogtreecommitdiff
path: root/timers.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-10-31 09:47:14 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2017-10-31 09:47:14 +0100
commit19275aa8bbc3407406d473debf316d0dbe6f45e3 (patch)
tree93328431f7d1aaff7a1665091c93ebe858a4ebb0 /timers.h
parent7bbbfb0dee56942458968e538830a3e5ec785bb5 (diff)
downloadvdr-19275aa8bbc3407406d473debf316d0dbe6f45e3.tar.gz
vdr-19275aa8bbc3407406d473debf316d0dbe6f45e3.tar.bz2
Fixed an invalid lock sequence when trying to remove a deleted recording in case of low disk space; now making sure that AssertFreeDiskSpace() is called with the maximum timer priority in case there are several timers recording with different priorities
Diffstat (limited to 'timers.h')
-rw-r--r--timers.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/timers.h b/timers.h
index c4932ba6..18ba30ec 100644
--- a/timers.h
+++ b/timers.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.h 4.8 2017/04/20 09:09:45 kls Exp $
+ * $Id: timers.h 4.9 2017/10/31 09:47:14 kls Exp $
*/
#ifndef __TIMERS_H
@@ -176,6 +176,8 @@ public:
cTimer *GetMatch(time_t t) { return const_cast<cTimer *>(static_cast<const cTimers *>(this)->GetMatch(t)); };
const cTimer *GetMatch(const cEvent *Event, eTimerMatch *Match = NULL) const;
cTimer *GetMatch(const cEvent *Event, eTimerMatch *Match = NULL) { return const_cast<cTimer *>(static_cast<const cTimers *>(this)->GetMatch(Event, Match)); }
+ int GetMaxPriority(void) const;
+ ///< Returns the maximum priority of all local timers that are currently recording.
const cTimer *GetNextActiveTimer(void) const;
const cTimer *UsesChannel(const cChannel *Channel) const;
bool SetEvents(const cSchedules *Schedules);