From: Lars Op den Kamp Date: Sat, 11 Feb 2012 20:46:09 +0000 (+0100) Subject: cec: don't try to lock the transmit mutex when deleting a command handler X-Git-Tag: upstream/2.2.0~1^2~35^2~96 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=67b9d205ea4e8520cfac7c2975ddf10de8f85d6e;p=deb_libcec.git cec: don't try to lock the transmit mutex when deleting a command handler --- diff --git a/src/lib/devices/CECBusDevice.h b/src/lib/devices/CECBusDevice.h index 60b293a..3de307d 100644 --- a/src/lib/devices/CECBusDevice.h +++ b/src/lib/devices/CECBusDevice.h @@ -141,6 +141,7 @@ namespace CEC std::set m_unsupportedFeatures; PLATFORM::CMutex m_mutex; PLATFORM::CMutex m_handlerMutex; + PLATFORM::CEvent m_replacing; unsigned m_iHandlerUseCount; bool m_bAwaitingReceiveFailed; }; diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 8c18958..b8dd25f 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -57,8 +57,6 @@ CCECCommandHandler::CCECCommandHandler(CCECBusDevice *busDevice) : CCECCommandHandler::~CCECCommandHandler(void) { - CLockObject lock(m_processor->m_transmitMutex); - CLockObject receiveLock(m_receiveMutex); m_condition.Broadcast(); }