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 127155a95195da75004f01213761ffd8dce62195..4a276ee760b7cc1b1b406e127a3a8e6fc37d401c 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-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;
}