Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Bug_2241_Regression / Hello.cpp
bloba171be3fec92b5d538fec5cbe47f223a1aabb8a8
1 #include "Hello.h"
2 #include "tao/ORB_Core.h"
3 #include "tao/ORB_Table.h"
4 #include "tao/ORB_Core_Auto_Ptr.h"
6 Hello::Hello (CORBA::ORB_ptr orb)
7 : orb_ (CORBA::ORB::_duplicate (orb))
11 char *
12 Hello::get_string ()
14 ACE_ERROR ((LM_ERROR,
15 "(%P|%t) ERROR: Unexpected Upcall in process ..\n"));
17 return CORBA::string_dup ("Hello there!");
20 void
21 Hello::shutdown ()
23 // Give the client thread time to return from the collocated
24 // call to this method before shutting down the ORB. We sleep
25 // to avoid BAD_INV_ORDER exceptions on fast dual processor machines.
26 ACE_OS::sleep (1);
27 this->orb_->shutdown (false);