Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Bug_1020_Basic_Regression / Echo_Caller.cpp
blob544f7cf94e1c889e83c362b6965d01a12c39c31c
1 #include "Echo_Caller.h"
2 #include "Server_Task.h"
4 Echo_Caller::Echo_Caller(CORBA::ORB_ptr orb)
5 : orb_ (CORBA::ORB::_duplicate(orb))
9 void
10 Echo_Caller::start_task(Test::Echo_ptr client)
12 Server_Task task (client);
14 if (task.activate (THR_NEW_LWP | THR_JOINABLE,
16 1) == -1)
18 ACE_ERROR ((LM_ERROR,
19 "Error activating client task\n"));
22 ACE_Thread_Manager::instance ()->wait ();
25 void
26 Echo_Caller::shutdown()
28 ACE_DEBUG ((LM_DEBUG, "Server received shutdown message\n"));
29 orb_->shutdown(0);