Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Cache_Growth_Test / Hello.cpp
blob635e9e8c1ea9569b160b3399b6342e3247da4d47
1 #include "Hello.h"
2 #include "tao/ORB_Core.h"
3 #include "tao/Transport_Cache_Manager.h"
4 #include "tao/Thread_Lane_Resources.h"
6 Hello::Hello (CORBA::ORB_ptr orb)
7 : orb_ (CORBA::ORB::_duplicate (orb))
11 char *
12 Hello::get_string ()
14 if (this->orb_->orb_core ()->lane_resources ().transport_cache ().current_size () > 1)
16 ACE_ERROR ((LM_ERROR,
17 "(%P|%t) The size is growing\n"));
20 return CORBA::string_dup ("Hello there!");
23 void
24 Hello::shutdown ()
26 this->orb_->shutdown (false);