2 //=============================================================================
6 * This class implements the Object A of the
7 * Nested Upcalls - Triangle test.
9 * @author Michael Kircher
11 //=============================================================================
14 #include "Object_A_i.h"
15 #include "tao/ORB_Core.h"
16 #include "ace/Reactor.h"
19 Object_A_i::Object_A_i (void)
20 : finish_two_way_call_ (0)
25 Object_A_i::~Object_A_i (void)
32 Object_A_i::foo (Initiator_ptr theInitiator_ptr
)
36 theInitiator_ptr
->foo_object_B ();
38 while (!this->finish_two_way_call_
)
39 TAO_ORB_Core_instance ()->reactor ()->handle_events ();
41 catch (const CORBA::Exception
& ex
)
43 ex
._tao_print_exception ("calling the initiator");
49 Object_A_i::finish (void)
51 this->finish_two_way_call_
= 1;
56 Object_A_i::shutdown (void)
60 CORBA::ORB_var orb
= CORBA::ORB_init (argc
, argv
);