Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Collocated_ThruP_Sp / Hello.cpp
blob8613b8172b31915256b7385537e6d1cdca9b6f5c
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_DEBUG,
17 "(%P|%t) ERROR: Upcall in process ..\n"));
18 return CORBA::string_dup ("Hello there!");
21 void
22 Hello::shutdown (void)
24 // Give the client thread time to return from the collocated
25 // call to this method before shutting down the ORB. We sleep
26 // to avoid BAD_INV_ORDER exceptions on fast dual processor machines.
27 ACE_OS::sleep (1);
28 this->orb_->shutdown (0);