summaryrefslogtreecommitdiff
path: root/TAO/tests/NestedUpcall/Triangle_Test/Object_A_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/NestedUpcall/Triangle_Test/Object_A_i.cpp')
-rw-r--r--TAO/tests/NestedUpcall/Triangle_Test/Object_A_i.cpp61
1 files changed, 61 insertions, 0 deletions
diff --git a/TAO/tests/NestedUpcall/Triangle_Test/Object_A_i.cpp b/TAO/tests/NestedUpcall/Triangle_Test/Object_A_i.cpp
new file mode 100644
index 00000000000..66764ee0b3c
--- /dev/null
+++ b/TAO/tests/NestedUpcall/Triangle_Test/Object_A_i.cpp
@@ -0,0 +1,61 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO/tests/NestedUpCalls/Triangle_Test
+//
+// = FILENAME
+// Object_A_i.cpp
+//
+// = DESCRIPTION
+// This class implements the Object A of the
+// Nested Upcalls - Triangle test.
+//
+// = AUTHORS
+// Michael Kircher
+//
+// ============================================================================
+
+#include "Object_A_i.h"
+#include "tao/ORB_Core.h"
+#include "ace/Reactor.h"
+
+ACE_RCSID(Triangle_Test, Object_A_i, "$Id$")
+
+// 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;
+
+}