Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / orbsvcs / performance-tests / RTEvent / lib / Loopback.cpp
blob3e1d377092253f061164a1c9a8c924dbdc898a55
1 /**
2 * @file Loopback.cpp
4 * @author Carlos O'Ryan <coryan@uci.edu>
5 */
7 #include "Loopback.h"
8 #include "Auto_Disconnect.h"
9 #include "Implicit_Deactivator.h"
11 Loopback::Loopback (CORBA::Long experiment_id,
12 CORBA::Long base_event_type,
13 PortableServer::POA_ptr supplier_poa,
14 PortableServer::POA_ptr consumer_poa,
15 RtecEventChannelAdmin::EventChannel_ptr ec)
17 this->loopback_pair_.init (experiment_id,
18 base_event_type,
19 supplier_poa,
20 consumer_poa);
22 this->loopback_pair_.connect (ec);
25 void
26 Loopback::disconnect ()
28 Auto_Disconnect<Loopback_Pair> disconnect (&this->loopback_pair_);
30 Implicit_Deactivator deactivator (this);