From fb6de12636c538ab4ddaae0cc32089eac9584ed9 Mon Sep 17 00:00:00 2001 From: horchi Date: Sat, 24 Feb 2018 17:29:07 +0100 Subject: 2018-02-23 version 1.1.89 (horchi)\n - change: Improved switch timer 'timing'\n\n --- update.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'update.h') diff --git a/update.h b/update.h index 92ebe35..eace297 100644 --- a/update.h +++ b/update.h @@ -115,6 +115,12 @@ class cUpdate : public cThread, public cStatus, public cParameters mmCount }; + enum Event + { + evtUnknown = na, + evtSwitchTimer, + }; + cUpdate(cPluginEPG2VDR* aPlugin); ~cUpdate(); @@ -168,6 +174,7 @@ class cUpdate : public cThread, public cStatus, public cParameters int exitDb(); void Action(void); + void processEvents(); int isHandlerMaster(); void updateVdrData(); int updateRecFolderOption(); @@ -239,6 +246,7 @@ class cUpdate : public cThread, public cStatus, public cParameters int recordingFullReloadTrigger; int storeAllRecordingInfoFilesTrigger; int updateRecFolderOptionTrigger; + int switchTimerTrigger; cList runningRecordings; cMutex runningRecMutex; @@ -300,6 +308,11 @@ class cUpdate : public cThread, public cStatus, public cParameters std::queue pendingNewRecordings; // recordings to store details (obsolete if pendingRecordingActions implemented finally) std::queue pendingRecordingActions; // recordings actions (start/stop) std::map switchTimers; + std::queue eventHook; + cMutex eventHookMutex; + + std::list timerThreads; + static void sendEvent(int event, void* userData); static const char* auxFields[]; }; -- cgit v1.2.3