Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Collocated_ThruP_Sp / Hello.cpp
blob659936a8069d78d37aa7aea9f78852e1ca99022d
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_DEBUG,
15 "(%P|%t) ERROR: Upcall in process ..\n"));
16 return CORBA::string_dup ("Hello there!");
19 void
20 Hello::shutdown ()
22 // Give the client thread time to return from the collocated
23 // call to this method before shutting down the ORB. We sleep
24 // to avoid BAD_INV_ORDER exceptions on fast dual processor machines.
25 ACE_OS::sleep (1);
26 this->orb_->shutdown (false);