cec: don't lock the mutex when checking for the poll status of a device. this is...
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 15 Feb 2012 18:37:41 +0000 (19:37 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 15 Feb 2012 18:37:41 +0000 (19:37 +0100)
src/lib/devices/CECBusDevice.cpp

index 4ff29a28609c4d359793e9919de136b0ed9ee6bc..ceb311d77b731fca1b09dad283ad1f23aa57a900 100644 (file)
@@ -926,14 +926,12 @@ bool CCECBusDevice::ActivateSource(void)
 
 void CCECBusDevice::HandlePoll(cec_logical_address iDestination)
 {
-  CLockObject lock(m_mutex);
   CLibCEC::AddLog(CEC_LOG_DEBUG, "<< POLL: %s (%x) -> %s (%x)", ToString(m_iLogicalAddress), m_iLogicalAddress, ToString(iDestination), iDestination);
   m_bAwaitingReceiveFailed = true;
 }
 
 bool CCECBusDevice::HandleReceiveFailed(void)
 {
-  CLockObject lock(m_mutex);
   bool bReturn = m_bAwaitingReceiveFailed;
   m_bAwaitingReceiveFailed = false;
   return bReturn;