From: Lars Op den Kamp Date: Wed, 15 Feb 2012 18:37:41 +0000 (+0100) Subject: cec: don't lock the mutex when checking for the poll status of a device. this is... X-Git-Tag: upstream/2.2.0~1^2~35^2~39 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9fc1bdd32ebb03b2854533dec43eb947299c674c;p=deb_libcec.git cec: don't lock the mutex when checking for the poll status of a device. this is always called from the same thread --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 4ff29a2..ceb311d 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -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;