repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: mutex in CSerialPort
[deb_libcec.git]
/
src
/
lib
/
CECProcessor.cpp
diff --git
a/src/lib/CECProcessor.cpp
b/src/lib/CECProcessor.cpp
index f3b89c3e3fe7e2e1382767430e063ad5e3451c06..4a276ee760b7cc1b1b406e127a3a8e6fc37d401c 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-35,7
+35,7
@@
#include "AdapterCommunication.h"
#include "LibCEC.h"
#include "util/StdString.h"
#include "AdapterCommunication.h"
#include "LibCEC.h"
#include "util/StdString.h"
-#include "
util
/timeutils.h"
+#include "
platform
/timeutils.h"
using namespace CEC;
using namespace std;
using namespace CEC;
using namespace std;
@@
-89,14
+89,16
@@
void *CCECProcessor::Process(void)
bParseFrame = ParseMessage(msg);
}
bParseFrame = ParseMessage(msg);
}
- if (bParseFrame)
+ if (
!m_bStop &&
bParseFrame)
ParseCurrentFrame();
ParseCurrentFrame();
- m_controller->CheckKeypressTimeout();
- CCondition::Sleep(50);
+ if (!m_bStop)
+ {
+ m_controller->CheckKeypressTimeout();
+ CCondition::Sleep(50);
+ }
}
}
- m_controller->AddLog(CEC_LOG_DEBUG, "processor thread terminated");
return NULL;
}
return NULL;
}