cec: serial port locking on linux
[deb_libcec.git] / src / lib / platform / sockets / serialport.h
index eed05a001761f6add5dc1a0de1475ba5bb9dc240..a16e3ca72115a77279de9837bb8311f0ba025115 100644 (file)
@@ -73,6 +73,8 @@ namespace PLATFORM
           CCommonSocket<serial_socket_t>(INVALID_SERIAL_SOCKET_VALUE, strName),
           #ifdef __WINDOWS__
           m_iCurrentReadTimeout(MAXDWORD),
+          #else
+          m_lockPid(0),
           #endif
           m_bIsOpen(false),
           m_iBaudrate(iBaudrate),
@@ -99,6 +101,7 @@ namespace PLATFORM
     protected:
   #ifndef __WINDOWS__
       struct termios  m_options;
+      pid_t           m_lockPid;
   #else
       bool SetTimeouts(serial_socket_t socket, int* iError, DWORD iTimeoutMs);
       DWORD           m_iCurrentReadTimeout;