Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / MT_BiDir / Client_Task.cpp
blob4f1b86398cc070e081771d027fa220448c745ad4
2 #include "Client_Task.h"
4 Client_Task::Client_Task (CORBA::ORB_ptr orb,
5 ACE_Thread_Manager *thr_mgr)
6 : ACE_Task_Base (thr_mgr)
7 , orb_ (CORBA::ORB::_duplicate (orb))
11 int
12 Client_Task::svc ()
14 ACE_DEBUG ((LM_DEBUG, "(%P|%t) Starting client task\n"));
16 // Wait for 2 minutes...
17 ACE_Time_Value tv (60,0);
19 try
21 this->orb_->run (tv);
23 catch (const CORBA::Exception& ex)
25 ex._tao_print_exception ("(%P|%t) Client_Task::svc exception!!!\n");
28 ACE_DEBUG ((LM_DEBUG, "(%P|%t) Client task finished\n"));
29 return 0;