cec: don't try to lock the transmit mutex when deleting a command handler
[deb_libcec.git] / src / lib / devices / CECBusDevice.h
index 0415ad19e08817287b7829b4d5784f46c1c52a88..3de307d9d1381ba3a538d4136cd06450d50c57b2 100644 (file)
@@ -31,7 +31,7 @@
  *     http://www.pulse-eight.net/
  */
 
-#include <cectypes.h>
+#include "../../../include/cectypes.h"
 #include <set>
 #include "../platform/threads/mutex.h"
 #include "../platform/util/StdString.h"
@@ -109,6 +109,8 @@ namespace CEC
 
   protected:
     bool ReplaceHandler(bool bInitHandler = true);
+    void MarkBusy(void);
+    void MarkReady(void);
 
     bool RequestCecVersion(void);
     bool RequestMenuLanguage(void);
@@ -139,5 +141,8 @@ 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;
   };
 };