blob: cb1164d14a393a475cf5c9f6bc88ffcd47a5879d (
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
39
40
41
42
43
44
45
46
47
|
#include "orbsvcs/Log_Macros.h"
#include "orbsvcs/Event/EC_TPC_ProxyConsumer.h"
#include "orbsvcs/Event/EC_Event_Channel_Base.h"
#include "orbsvcs/Event/EC_TPC_Dispatching.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
extern unsigned long TAO_EC_TPC_debug_level;
TAO_EC_TPC_ProxyPushConsumer::TAO_EC_TPC_ProxyPushConsumer (TAO_EC_Event_Channel_Base* ec)
: TAO_EC_Default_ProxyPushConsumer (ec)
{
}
TAO_EC_TPC_Dispatching*
TAO_EC_TPC_ProxyPushConsumer::tpc_dispatching (void)
{
TAO_EC_Dispatching* dispatcher = this->event_channel_->dispatching ();
TAO_EC_TPC_Dispatching* tpcdispatcher =
dynamic_cast<TAO_EC_TPC_Dispatching*>(dispatcher);
return tpcdispatcher;
}
TAO_EC_TPC_ProxyPushConsumer::~TAO_EC_TPC_ProxyPushConsumer (void)
{
// @@@ Do I need to call the logic to remove the consumer from the
// dispatch map in here? I'm not sure... But, if I do, then I need
// to fact that "remove" code out of just the
// disconnect_push_consumer.
if (TAO_EC_TPC_debug_level > 0)
ORBSVCS_DEBUG ((LM_DEBUG, "RTEC (%P|%t): inside ~TAO_EC_TPC_ProxyPushConsumer (%x)\n", this));
}
void
TAO_EC_TPC_ProxyPushConsumer::disconnect_push_consumer (void)
{
RtecEventComm::PushConsumer_var emulated_exceptions_suck = this->_this ();
this->tpc_dispatching ()->remove_consumer (emulated_exceptions_suck.in ());
BASECLASS::disconnect_push_consumer ();
}
TAO_END_VERSIONED_NAMESPACE_DECL
|