summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/Bug_1495_Regression/test_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tests/Bug_1495_Regression/test_i.cpp')
-rw-r--r--trunk/TAO/tests/Bug_1495_Regression/test_i.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/trunk/TAO/tests/Bug_1495_Regression/test_i.cpp b/trunk/TAO/tests/Bug_1495_Regression/test_i.cpp
new file mode 100644
index 00000000000..f79564cc0dd
--- /dev/null
+++ b/trunk/TAO/tests/Bug_1495_Regression/test_i.cpp
@@ -0,0 +1,58 @@
+// -*- C++ -*-
+//
+// $Id$
+
+/**
+ * @file test_i.cpp
+ * @author Will Otte <wotte@dre.vanderbilt.edu>
+ */
+
+#include "test_i.h"
+#include "ace/Thread.h"
+
+
+Bug1495_i::Bug1495_i ()
+{}
+
+// Implementation skeleton constructor
+Bug1495_i::Bug1495_i (CORBA::ORB_ptr orb)
+ : orb_ (CORBA::ORB::_duplicate (orb))
+{
+}
+
+// Implementation skeleton destructor
+Bug1495_i::~Bug1495_i (void)
+{
+}
+
+void
+Bug1495_i::get_thread_id (
+ CORBA::Long_out thread_id
+ ACE_ENV_ARG_DECL_NOT_USED
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
+{
+ thread_id = (CORBA::Long)ACE_Thread::self();
+}
+
+void
+Bug1495_i::shutdown (
+ ACE_ENV_SINGLE_ARG_DECL
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
+{
+ ACE_DEBUG ((LM_INFO,
+ "Shutting down orb %i\n",
+ ACE_Thread::self()));
+
+ this->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+
+ this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+}
+