X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FAdapterCommunication.h;h=135b5c2cdadf3947e3d4955b40df7b78632f9b18;hb=13fd6a6619b36bef2df2a126455f83776cc991b4;hp=8ce9c5b790d82dab14cdc13d01c0a585c67d9f8e;hpb=25701fa60407a0fc0bc1dfcd4049fc01ad9e4fd1;p=deb_libcec.git diff --git a/src/lib/AdapterCommunication.h b/src/lib/AdapterCommunication.h index 8ce9c5b..135b5c2 100644 --- a/src/lib/AdapterCommunication.h +++ b/src/lib/AdapterCommunication.h @@ -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; };