driver/record.cpp: add timer to monitor record status;

add warning, when record buffer close to or already overflow;
change single record stop to sync mode - under high load stopTimerEvent() takes too long
This commit is contained in:
[CST] Focus
2012-09-25 17:19:28 +04:00
parent 70836baa48
commit b8ff3bbdd5
2 changed files with 59 additions and 4 deletions

View File

@@ -124,6 +124,7 @@ class CRecordInstance
bool Timeshift() { return autoshift; };
int tshift_mode;
void SetStopMessage(const char* text) {rec_stop_msg = text;} ;
int GetStatus();
CFrontend * frontend;
};
@@ -150,6 +151,9 @@ class CRecordManager : public CMenuTarget /*, public CChangeObserver*/
int last_mode;
bool autoshift;
uint32_t shift_timer;
uint32_t check_timer;
bool error_display;
bool warn_display;
OpenThreads::Mutex mutex;
static OpenThreads::Mutex sm;