Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_2241_Regression / Hello.cpp
blob05ff299503e44b218ec2738515c5798761289344
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 ACE_thread_t thrid)
8 : orb_ (CORBA::ORB::_duplicate (orb))
9 , thr_id_ (thrid)
13 char *
14 Hello::get_string (void)
16 ACE_ERROR ((LM_ERROR,
17 "(%P|%t) ERROR: Unexpected Upcall in process ..\n"));
19 return CORBA::string_dup ("Hello there!");
22 void
23 Hello::shutdown (void)
25 // Give the client thread time to return from the collocated
26 // call to this method before shutting down the ORB. We sleep
27 // to avoid BAD_INV_ORDER exceptions on fast dual processor machines.
28 ACE_OS::sleep (1);
29 this->orb_->shutdown (0);