cec: protect the SL state vars with a mutex
[deb_libcec.git] / src / lib / implementations / SLCommandHandler.h
index fc4c5fddfd3cabcd6c6bc5c8ee682a85f011ca13..fd532668ab5ebac1e6d272760e53daf4e31fb4cc 100644 (file)
@@ -67,10 +67,15 @@ namespace CEC
     virtual bool HandleStandby(const cec_command &command);
     virtual bool TransmitMenuState(const cec_logical_address UNUSED(iInitiator), const cec_logical_address UNUSED(iDestination), cec_menu_state UNUSED(menuState)) { return true; }
 
+    virtual void ResetSLState(void);
+    virtual bool SLInitialised(void);
+    virtual void SetSLInitialised(void);
+    virtual bool ActiveSourceSent(void);
+
     bool               m_bSLEnabled;
-    bool               m_bPowerStateReset;
     bool               m_bActiveSourceSent;
     PLATFORM::CTimeout m_resetPowerState;
     bool               m_bVendorIdSent;
+    PLATFORM::CMutex   m_SLMutex;
   };
 };