OpenDDS::DCPS::PeerDiscovery< Participant >::ReactorRunner Struct Reference

#include <DiscoveryBase.h>

Inheritance diagram for OpenDDS::DCPS::PeerDiscovery< Participant >::ReactorRunner:

Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::PeerDiscovery< Participant >::ReactorRunner:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ReactorRunner ()
 ~ReactorRunner ()
int svc ()
void end ()

Public Attributes

ACE_Reactor * reactor_
ACE_Thread_Mutex mtx_

Detailed Description

template<typename Participant>
struct OpenDDS::DCPS::PeerDiscovery< Participant >::ReactorRunner

Definition at line 1510 of file DiscoveryBase.h.


Constructor & Destructor Documentation

template<typename Participant>
OpenDDS::DCPS::PeerDiscovery< Participant >::ReactorRunner::ReactorRunner (  )  [inline]

Definition at line 1511 of file DiscoveryBase.h.

01511 : reactor_(0) {}

template<typename Participant>
OpenDDS::DCPS::PeerDiscovery< Participant >::ReactorRunner::~ReactorRunner (  )  [inline]

Definition at line 1512 of file DiscoveryBase.h.

01513         {
01514           delete reactor_;
01515         }


Member Function Documentation

template<typename Participant>
void OpenDDS::DCPS::PeerDiscovery< Participant >::ReactorRunner::end (  )  [inline]

Definition at line 1524 of file DiscoveryBase.h.

01525         {
01526           ACE_GUARD(ACE_Thread_Mutex, g, mtx_);
01527           if (reactor_) {
01528             reactor_->end_reactor_event_loop();
01529             wait();
01530           }
01531         }

template<typename Participant>
int OpenDDS::DCPS::PeerDiscovery< Participant >::ReactorRunner::svc (  )  [inline]

Definition at line 1517 of file DiscoveryBase.h.

01518         {
01519           reactor_->owner(ACE_Thread_Manager::instance()->thr_self());
01520           reactor_->run_reactor_event_loop();
01521           return 0;
01522         }


Member Data Documentation

template<typename Participant>
ACE_Thread_Mutex OpenDDS::DCPS::PeerDiscovery< Participant >::ReactorRunner::mtx_

Definition at line 1534 of file DiscoveryBase.h.

template<typename Participant>
ACE_Reactor* OpenDDS::DCPS::PeerDiscovery< Participant >::ReactorRunner::reactor_

Definition at line 1533 of file DiscoveryBase.h.


The documentation for this struct was generated from the following file:
Generated on Fri Feb 12 20:06:15 2016 for OpenDDS by  doxygen 1.4.7