summaryrefslogtreecommitdiff
path: root/tests/NestedUpcall/Triangle_Test/initiator.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2011-06-21 14:39:35 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2011-06-21 14:39:35 +0000
commitd0301acb799b1d5696713ab42034305f45c4e93e (patch)
tree0b8f08656d6028906c0e09a18adefbaf4165625e /tests/NestedUpcall/Triangle_Test/initiator.cpp
parent69f9bf8d9b860780108161e5209a5d9b1ad3d321 (diff)
downloadATCD-d0301acb799b1d5696713ab42034305f45c4e93e.tar.gz
ChangeLogTag: Mon Jun 13 18:00:05 UTC 2011 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'tests/NestedUpcall/Triangle_Test/initiator.cpp')
-rw-r--r--tests/NestedUpcall/Triangle_Test/initiator.cpp43
1 files changed, 21 insertions, 22 deletions
diff --git a/tests/NestedUpcall/Triangle_Test/initiator.cpp b/tests/NestedUpcall/Triangle_Test/initiator.cpp
index 3433e5fea2a..3b7500c822c 100644
--- a/tests/NestedUpcall/Triangle_Test/initiator.cpp
+++ b/tests/NestedUpcall/Triangle_Test/initiator.cpp
@@ -1,21 +1,18 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/NestedUpCalls/Triangle_Test
-//
-// = FILENAME
-// initiator.cpp
-//
-// = DESCRIPTION
-// This class implements a simple server for the
-// Nested Upcalls - Triangle test.
-//
-// = AUTHORS
-// Michael Kircher
-//
-// ============================================================================
+
+//=============================================================================
+/**
+ * @file initiator.cpp
+ *
+ * $Id$
+ *
+ * This class implements a simple server for the
+ * Nested Upcalls - Triangle test.
+ *
+ *
+ * @author Michael Kircher
+ */
+//=============================================================================
+
#include "initiator.h"
#include "tao/debug.h"
@@ -23,8 +20,6 @@
#include "ace/OS_NS_fcntl.h"
#include "ace/OS_NS_unistd.h"
-ACE_RCSID(Triangle_Test, initiator, "$Id$")
-
Initiator_Server::Initiator_Server (void)
: object_A_key_ (0),
object_B_key_ (0),
@@ -143,10 +138,11 @@ Initiator_Server::init (int argc,
try
{
+ CORBA::ORB_var orb = this->orb_manager_.orb();
// Get Object A
CORBA::Object_var object_A_obj_var =
- this->orb_manager_.orb()->string_to_object (this->object_A_key_);
+ orb->string_to_object (this->object_A_key_);
this->object_A_var_ =
Object_A::_narrow (object_A_obj_var.in());
@@ -168,7 +164,7 @@ Initiator_Server::init (int argc,
// Get Object B
CORBA::Object_var object_B_obj_var =
- this->orb_manager_.orb()->string_to_object (this->object_B_key_);
+ orb->string_to_object (this->object_B_key_);
this->object_B_var_ =
Object_B::_narrow (object_B_obj_var.in());
@@ -255,6 +251,9 @@ Initiator_Server::~Initiator_Server (void)
if (this->object_B_key_ != 0)
ACE_Allocator::instance ()->free (this->object_B_key_);
+ this->object_A_var_->shutdown ();
+ this->object_B_var_->shutdown ();
+
try
{
this->orb_manager_.deactivate (this->str_.in ());