diff options
Diffstat (limited to 'ACE/TAO/tests/Bug_1495_Regression/test_i.cpp')
-rw-r--r-- | ACE/TAO/tests/Bug_1495_Regression/test_i.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ACE/TAO/tests/Bug_1495_Regression/test_i.cpp b/ACE/TAO/tests/Bug_1495_Regression/test_i.cpp new file mode 100644 index 00000000000..88578e5d335 --- /dev/null +++ b/ACE/TAO/tests/Bug_1495_Regression/test_i.cpp @@ -0,0 +1,43 @@ +// -*- C++ -*- +// +// $Id$ + +/** + * @file test_i.cpp + * @author Will Otte <wotte@dre.vanderbilt.edu> + */ + +#include "test_i.h" +#include "tid_to_int.h" +#include "ace/Thread.h" + + +Bug1495_i::Bug1495_i (CORBA::ORB_ptr orb) + : orb_ (CORBA::ORB::_duplicate (orb)) +{ +} + +Bug1495_i::~Bug1495_i (void) +{ +} + +void +Bug1495_i::get_thread_id (Bug1495_Regression::ThreadId_out thread_id) +{ + typedef Bug1495_Regression::ThreadId ThreadId; + + thread_id = ACE_thread_t_to_integer<ThreadId> (ACE_Thread::self ()); +} + +void +Bug1495_i::shutdown (void) +{ + ACE_DEBUG ((LM_INFO, + "Shutting down orb %Q\n", + ACE_Thread::self ())); + + this->_remove_ref (); + + this->orb_->shutdown (false); +} + |