daemon.cpp
Go to the documentation of this file.
1 
11 #include "daemon.h"
12 
13 
14 namespace OpcUa
15 {
16 
18 {
20 }
21 
23 {
24 }
25 
27 {
28  std::unique_lock<std::mutex> lock(Mutex);
29  ExitEvent.wait(lock, [this]() { return Terminating; });
30 }
31 
33 {
34  Terminating = true;
35  ExitEvent.notify_all();
36 }
37 
38 }
39 
void WaitForTerminate()
Definition: daemon.cpp:26
void Terminate()
Definition: daemon.cpp:32
OPC UA Address space part. 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