cec: don't try to lock the transmit mutex when deleting a command handler
authorLars Op den Kamp <lars@opdenkamp.eu>
Sat, 11 Feb 2012 20:46:09 +0000 (21:46 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sat, 11 Feb 2012 20:46:09 +0000 (21:46 +0100)
src/lib/devices/CECBusDevice.h
src/lib/implementations/CECCommandHandler.cpp

index 60b293a034b3430b2c596c2fe9520781b7efd251..3de307d9d1381ba3a538d4136cd06450d50c57b2 100644 (file)
@@ -141,6 +141,7 @@ namespace CEC
     std::set<cec_opcode>  m_unsupportedFeatures;
     PLATFORM::CMutex      m_mutex;
     PLATFORM::CMutex      m_handlerMutex;
+    PLATFORM::CEvent      m_replacing;
     unsigned              m_iHandlerUseCount;
     bool                  m_bAwaitingReceiveFailed;
   };
index 8c1895894253e0d5e2210da3d9b1e78bf5797205..b8dd25f2df51f1bd51292439c7f059977c9e34fc 100644 (file)
@@ -57,8 +57,6 @@ CCECCommandHandler::CCECCommandHandler(CCECBusDevice *busDevice) :
 
 CCECCommandHandler::~CCECCommandHandler(void)
 {
-  CLockObject lock(m_processor->m_transmitMutex);
-  CLockObject receiveLock(m_receiveMutex);
   m_condition.Broadcast();
 }