ROSaic
Public Member Functions | Protected Attributes
io_comm_rx::AbstractCallbackHandler Class Referenceabstract

#include <callback_handlers.hpp>

Inheritance diagram for io_comm_rx::AbstractCallbackHandler:
Inheritance graph
[legend]
Collaboration diagram for io_comm_rx::AbstractCallbackHandler:
Collaboration graph
[legend]

Public Member Functions

virtual void handle (RxMessage &rx_message, std::string message_key)=0
 
bool Wait (const boost::posix_time::time_duration &timeout)
 

Protected Attributes

boost::mutex mutex_
 
boost::condition_variable condition_
 

Detailed Description

Definition at line 145 of file callback_handlers.hpp.

Member Function Documentation

◆ handle()

virtual void io_comm_rx::AbstractCallbackHandler::handle ( RxMessage rx_message,
std::string  message_key 
)
pure virtual

Implemented in io_comm_rx::CallbackHandler< T >.

Referenced by io_comm_rx::CallbackHandlers::insert().

Here is the caller graph for this function:

◆ Wait()

bool io_comm_rx::AbstractCallbackHandler::Wait ( const boost::posix_time::time_duration &  timeout)
inline

Definition at line 150 of file callback_handlers.hpp.

References condition_, and mutex_.

151  {
152  boost::mutex::scoped_lock lock(mutex_);
153  return condition_.timed_wait(lock, timeout);
154  }
boost::condition_variable condition_

Field Documentation

◆ condition_

boost::condition_variable io_comm_rx::AbstractCallbackHandler::condition_
protected

Definition at line 158 of file callback_handlers.hpp.

Referenced by io_comm_rx::CallbackHandler< T >::handle(), and Wait().

◆ mutex_

boost::mutex io_comm_rx::AbstractCallbackHandler::mutex_
protected

Definition at line 157 of file callback_handlers.hpp.

Referenced by io_comm_rx::CallbackHandler< T >::handle(), and Wait().


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