daemon.h
Go to the documentation of this file.
1 
12 #include <mutex>
13 #include <condition_variable>
14 
15 namespace OpcUa
16 {
17 
18 class Daemon
19 {
20 public:
22 
23 public:
24  Daemon();
25  ~Daemon();
26 
27  void Daemonize(const std::string & str);
28  void WaitForTerminate();
29 
30  void Terminate();
31 
32 private:
33  void SetTerminateHandlers();
34 
35 private:
36  std::mutex Mutex;
37  std::condition_variable ExitEvent;
38  volatile bool Terminating = false;
39 };
40 
41 } // namespace OpcUa
42 
void WaitForTerminate()
Definition: daemon.cpp:26
void Terminate()
Definition: daemon.cpp:32
OPC UA Address space part. GNU LGPL.
void Daemonize(const std::string &str)
Definition: daemon_lin.cpp:68
#define DEFINE_CLASS_POINTERS(ClassName)
Exception declarations GNU LGPL.
std::condition_variable ExitEvent
Definition: daemon.h:37
void SetTerminateHandlers()
Definition: daemon_lin.cpp:48
volatile bool Terminating
Definition: daemon.h:38
std::mutex Mutex
Definition: daemon.h:36


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:06:04