Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
freeopcua
src
serverapp
daemon.cpp
Go to the documentation of this file.
1
11
#include "
daemon.h
"
12
13
14
namespace
OpcUa
15
{
16
17
Daemon::Daemon
()
18
{
19
SetTerminateHandlers
();
20
}
21
22
Daemon::~Daemon
()
23
{
24
}
25
26
void
Daemon::WaitForTerminate
()
27
{
28
std::unique_lock<std::mutex> lock(
Mutex
);
29
ExitEvent
.wait(lock, [
this
]() {
return
Terminating
; });
30
}
31
32
void
Daemon::Terminate
()
33
{
34
Terminating
=
true
;
35
ExitEvent
.notify_all();
36
}
37
38
}
39
daemon.h
OpcUa::Daemon::WaitForTerminate
void WaitForTerminate()
Definition:
daemon.cpp:26
OpcUa::Daemon::Terminate
void Terminate()
Definition:
daemon.cpp:32
OpcUa::Daemon::~Daemon
~Daemon()
Definition:
daemon.cpp:22
OpcUa
OPC UA Address space part. GNU LGPL.
Definition:
ua/client/addon.h:18
OpcUa::Daemon::ExitEvent
std::condition_variable ExitEvent
Definition:
daemon.h:37
OpcUa::Daemon::SetTerminateHandlers
void SetTerminateHandlers()
Definition:
daemon_lin.cpp:48
OpcUa::Daemon::Daemon
Daemon()
Definition:
daemon.cpp:17
OpcUa::Daemon::Terminating
volatile bool Terminating
Definition:
daemon.h:38
OpcUa::Daemon::Mutex
std::mutex Mutex
Definition:
daemon.h:36
ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:06:04