3 #include "tao/ORB_Core.h"
5 #include "tao/Transport_Cache_Manager.h"
6 #include "tao/Thread_Lane_Resources.h"
8 #if !defined(__ACE_INLINE__)
10 #endif /* __ACE_INLINE__ */
14 Callback_i::shutdown ()
16 ACE_DEBUG ((LM_DEBUG
, "Performing clean shutdown\n"));
17 this->orb_
->shutdown (false);
21 Callback_i::callback_method ()
23 if (TAO_debug_level
> 0)
24 ACE_DEBUG ((LM_DEBUG
, "Callback method called\n"));
28 // ****************************************************************
31 Simple_Server_i::test_method (CORBA::Boolean do_callback
43 Simple_Server_i::callback_object (Callback_ptr callback
46 // Store the callback object
47 this->callback_
= Callback::_duplicate (callback
);
51 Simple_Server_i::call_client ()
55 ACE_DEBUG ((LM_DEBUG
,"calling client\n"));
57 for (int times
= 0; times
< this->no_iterations_
; ++times
)
59 this->callback_
->callback_method ();
61 if (this->orb_
->orb_core ()->lane_resources ().transport_cache ().current_size () > 1)
64 "(%P|%t) The cache has grown, aborting ..\n"));
70 this->callback_
->shutdown ();
81 Simple_Server_i::shutdown ()
83 this->orb_
->shutdown (false);