cec: keep the 'busy state' of the command handler in CCECBusDevice
[deb_libcec.git] / src / lib / devices / CECBusDevice.h
index 94810fbc8e5b8af874ce7cca898fd23798eecc9c..60b293a034b3430b2c596c2fe9520781b7efd251 100644 (file)
@@ -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,6 +141,7 @@ namespace CEC
     std::set<cec_opcode>  m_unsupportedFeatures;
     PLATFORM::CMutex      m_mutex;
     PLATFORM::CMutex      m_handlerMutex;
+    unsigned              m_iHandlerUseCount;
     bool                  m_bAwaitingReceiveFailed;
   };
 };