2 #include "Client_Task.h"
5 Client_Task::Client_Task (Test::Hello_ptr receiver
,
7 ACE_Thread_Manager
*thr_mgr
)
8 : ACE_Task_Base (thr_mgr
)
9 , receiver_ (Test::Hello::_duplicate (receiver
))
12 , orb_ (CORBA::ORB::_duplicate (o
))
14 this->handler_var_
= this->handler_
._this ();
20 // ACE_DEBUG ((LM_DEBUG, "(%P|%t) Starting client task\n"));
24 for (CORBA::Long j
= 0;
28 // Send 25 messages in every loop..
29 for (CORBA::Short i
= 0; i
!= 25; ++i
)
31 this->receiver_
->sendc_next_prime (this->handler_var_
.in ());
34 CORBA::Short repl
= 0;
37 CORBA::Boolean pending
=
38 this->orb_
->work_pending ();
42 this->orb_
->perform_work ();
49 catch (const CORBA::Exception
&)
53 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) Client task finished\n"));