Public Member Functions | Private Member Functions | Private Attributes
OpcUa::PeriodicTimer Class Reference

#include <timer.h>

List of all members.

Public Member Functions

void Cancel ()
 PeriodicTimer (boost::asio::io_service &io)
void Start (const boost::asio::deadline_timer::duration_type &t, std::function< void()> handler)
 ~PeriodicTimer ()

Private Member Functions

void OnTimer (const boost::system::error_code &error, std::function< void()> handler, boost::asio::deadline_timer::duration_type t)

Private Attributes

std::atomic< bool > IsCanceled
std::mutex Mutex
std::condition_variable StopEvent
std::atomic< bool > Stopped
boost::asio::deadline_timer Timer

Detailed Description

Definition at line 30 of file timer.h.


Constructor & Destructor Documentation

OpcUa::PeriodicTimer::PeriodicTimer ( boost::asio::io_service &  io) [inline]

Definition at line 33 of file timer.h.

Definition at line 40 of file timer.h.


Member Function Documentation

void OpcUa::PeriodicTimer::Cancel ( ) [inline]

Definition at line 59 of file timer.h.

void OpcUa::PeriodicTimer::OnTimer ( const boost::system::error_code &  error,
std::function< void()>  handler,
boost::asio::deadline_timer::duration_type  t 
) [inline, private]

Definition at line 73 of file timer.h.

void OpcUa::PeriodicTimer::Start ( const boost::asio::deadline_timer::duration_type &  t,
std::function< void()>  handler 
) [inline]

Definition at line 45 of file timer.h.


Member Data Documentation

std::atomic<bool> OpcUa::PeriodicTimer::IsCanceled [private]

Definition at line 96 of file timer.h.

std::mutex OpcUa::PeriodicTimer::Mutex [private]

Definition at line 93 of file timer.h.

std::condition_variable OpcUa::PeriodicTimer::StopEvent [private]

Definition at line 94 of file timer.h.

std::atomic<bool> OpcUa::PeriodicTimer::Stopped [private]

Definition at line 97 of file timer.h.

boost::asio::deadline_timer OpcUa::PeriodicTimer::Timer [private]

Definition at line 95 of file timer.h.


The documentation for this class was generated from the following file:


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:59