summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2014-03-02 14:56:49 +0100
committeranbr <vdr07@deltab.de>2014-03-02 14:56:49 +0100
commitba862b788f6c13e22147a23cd34ea78fb3d30c1a (patch)
tree1190de636694be49b6be4187baa5bf659e86619c
parent735f1c873033c7609306c43ba70bac0038afbeb1 (diff)
downloadvdr-plugin-targavfd-ba862b788f6c13e22147a23cd34ea78fb3d30c1a.tar.gz
vdr-plugin-targavfd-ba862b788f6c13e22147a23cd34ea78fb3d30c1a.tar.bz2
Make unique scope of cVFDWatch::mutex - cThread::mutex
-rw-r--r--watch.c20
-rw-r--r--watch.h2
2 files changed, 11 insertions, 11 deletions
diff --git a/watch.c b/watch.c
index 6c340ed..24d7bbf 100644
--- a/watch.c
+++ b/watch.c
@@ -230,7 +230,7 @@ void cVFDWatch::Action(void)
if(m_bShutdown)
break;
else {
- cMutexLooker m(mutex);
+ cMutexLooker m(m_Mutex);
runTime.Set();
time_t ts = time(NULL);
@@ -641,7 +641,7 @@ char *striptitle(char *s)
void cVFDWatch::Replaying(const cControl * Control, const char * szName, const char *FileName, bool On)
{
- cMutexLooker m(mutex);
+ cMutexLooker m(m_Mutex);
m_bUpdateScreen = true;
if (On)
{
@@ -846,7 +846,7 @@ bool cVFDWatch::ReplayTime() {
void cVFDWatch::Recording(const cDevice *pDevice, const char *szName, const char *szFileName, bool bOn)
{
- cMutexLooker m(mutex);
+ cMutexLooker m(m_Mutex);
unsigned int nCardIndex = pDevice->CardIndex();
if (nCardIndex > memberof(m_nCardIsRecording) - 1 )
@@ -868,7 +868,7 @@ void cVFDWatch::Recording(const cDevice *pDevice, const char *szName, const char
void cVFDWatch::Channel(int ChannelNumber)
{
- cMutexLooker m(mutex);
+ cMutexLooker m(m_Mutex);
if(chPresentTitle) {
delete chPresentTitle;
chPresentTitle = NULL;
@@ -943,7 +943,7 @@ bool cVFDWatch::Program() {
void cVFDWatch::Volume(int nVolume, bool bAbsolute)
{
- cMutexLooker m(mutex);
+ cMutexLooker m(m_Mutex);
int nAbsVolume;
@@ -972,7 +972,7 @@ void cVFDWatch::Volume(int nVolume, bool bAbsolute)
void cVFDWatch::OsdClear() {
- cMutexLooker m(mutex);
+ cMutexLooker m(m_Mutex);
if(osdMessage) {
delete osdMessage;
osdMessage = NULL;
@@ -1005,7 +1005,7 @@ void cVFDWatch::OsdTitle(const char *sz) {
}
return;
}
- cMutexLooker m(mutex);
+ cMutexLooker m(m_Mutex);
if(osdTitle) {
delete osdTitle;
osdTitle = NULL;
@@ -1036,7 +1036,7 @@ void cVFDWatch::OsdCurrentItem(const char *sz)
}
return;
}
- cMutexLooker m(mutex);
+ cMutexLooker m(m_Mutex);
if(osdItem) {
delete osdItem;
osdItem = NULL;
@@ -1067,7 +1067,7 @@ void cVFDWatch::OsdStatusMessage(const char *sz)
}
return;
}
- cMutexLooker m(mutex);
+ cMutexLooker m(m_Mutex);
if(osdMessage) {
delete osdMessage;
osdMessage = NULL;
@@ -1083,7 +1083,7 @@ void cVFDWatch::OsdStatusMessage(const char *sz)
}
bool cVFDWatch::SetFont(const char *szFont, bool bTwoLineMode, int nBigFontHeight, int nSmallFontHeight) {
- cMutexLooker m(mutex);
+ cMutexLooker m(m_Mutex);
if(cVFD::SetFont(szFont, bTwoLineMode, nBigFontHeight, nSmallFontHeight)) {
m_bUpdateScreen = true;
return true;
diff --git a/watch.h b/watch.h
index d3fee8f..4d5eb3d 100644
--- a/watch.h
+++ b/watch.h
@@ -48,7 +48,7 @@ class cVFDWatch
: public cVFD
, protected cThread {
private:
- cMutex mutex;
+ cMutex m_Mutex;
volatile bool m_bShutdown;