HDLC-Daemon
SerialPortLock.cpp
Go to the documentation of this file.
1 
22 #include "SerialPortLock.h"
23 
25  m_NbrOfLocks = 0;
26 }
27 
29  return ((++m_NbrOfLocks) == 1);
30 }
31 
33  return ((--m_NbrOfLocks) == 0);
34 }
35 
37  return (m_NbrOfLocks != 0);
38 }
bool SuspendSerialPort()
bool GetSerialPortState() const
The HDLC Deamon implements the HDLC protocol to easily talk to devices connected via serial communica...