blob: 41d91c2189690ca76c7cea2d510eda5e5e4afc6a (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
//=============================================================================
/**
* @file Object_A_i.cpp
*
* This class implements the Object A of the
* Nested Upcalls - Triangle test.
*
* @author Michael Kircher
*/
//=============================================================================
#include "Object_A_i.h"
#include "tao/ORB_Core.h"
#include "ace/Reactor.h"
// CTOR
Object_A_i::Object_A_i (void)
: finish_two_way_call_ (0)
{
}
// DTOR
Object_A_i::~Object_A_i (void)
{
}
void
Object_A_i::foo (Initiator_ptr theInitiator_ptr)
{
try
{
theInitiator_ptr->foo_object_B ();
while (!this->finish_two_way_call_)
TAO_ORB_Core_instance ()->reactor ()->handle_events ();
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("calling the initiator");
}
}
void
Object_A_i::finish (void)
{
this->finish_two_way_call_ = 1;
}
void
Object_A_i::shutdown (void)
{
int argc = 0;
ACE_TCHAR **argv = 0;
CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
orb->shutdown ();
}
|