HDLC-Daemon
SerialPortLock.h
Go to the documentation of this file.
1 
22 #ifndef SERIAL_PORT_LOCK_H
23 #define SERIAL_PORT_LOCK_H
24 
25 #include <cstddef>
26 
28 public:
29  // CTOR
31 
32  // Influende the serial port
33  bool SuspendSerialPort();
34  bool ResumeSerialPort();
35  bool GetSerialPortState() const;
36  size_t GetLockHolders() const { return m_NbrOfLocks; }
37 
38 private:
39  // Members
40  size_t m_NbrOfLocks;
41 };
42 
43 #endif // SERIAL_PORT_LOCK_H
size_t GetLockHolders() const
bool SuspendSerialPort()
bool GetSerialPortState() const