Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / MT_BiDir / Client_Task.cpp
blob27649c77a50d7cbcc5a549f19f61a969e52bb6e8
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 (void)
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");
29 ACE_DEBUG ((LM_DEBUG, "(%P|%t) Client task finished\n"));
30 return 0;