blob: 3039480f1f80ad868718636aecda2043ac93588f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/**
* @file Loopback.cpp
*
* $Id$
*
* @author Carlos O'Ryan <coryan@uci.edu>
*/
#include "Loopback.h"
#include "Auto_Disconnect.h"
#include "Implicit_Deactivator.h"
ACE_RCSID (TAO_RTEC_Perf,
Loopback,
"$Id$")
Loopback::Loopback (CORBA::Long experiment_id,
CORBA::Long base_event_type,
PortableServer::POA_ptr supplier_poa,
PortableServer::POA_ptr consumer_poa,
RtecEventChannelAdmin::EventChannel_ptr ec)
{
this->loopback_pair_.init (experiment_id,
base_event_type,
supplier_poa,
consumer_poa);
this->loopback_pair_.connect (ec);
}
void
Loopback::disconnect (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
Auto_Disconnect<Loopback_Pair> disconnect (&this->loopback_pair_);
Implicit_Deactivator deactivator (this);
}
|