cec: removed dupe m_bRunning properties. wait until a thread is started before return...
[deb_libcec.git] / src / lib / AdapterCommunication.h
index 8ce9c5b790d82dab14cdc13d01c0a585c67d9f8e..135b5c2cdadf3947e3d4955b40df7b78632f9b18 100644 (file)
@@ -40,7 +40,7 @@ namespace CEC
   class CSerialPort;
   class CLibCEC;
 
-  class CAdapterCommunication : CThread
+  class CAdapterCommunication : private CThread
   {
   public:
     CAdapterCommunication(CLibCEC *controller);
@@ -51,7 +51,7 @@ namespace CEC
     bool Write(const cec_frame &frame);
     bool PingAdapter(void);
     void Close(void);
-    bool IsOpen(void) const { return !m_bStop && m_bStarted; }
+    bool IsOpen(void) const;
     std::string GetError(void) const;
 
     void *Process(void);
@@ -68,8 +68,6 @@ namespace CEC
     uint8_t*             m_inbuf;
     int16_t              m_iInbufSize;
     int16_t              m_iInbufUsed;
-    bool                 m_bStarted;
-    bool                 m_bStop;
     CMutex               m_mutex;
     CCondition           m_rcvCondition;
   };