2 #include "Client_Task.h"
4 Client_Task::Client_Task (CORBA::ORB_ptr orb
)
5 : orb_ (CORBA::ORB::_duplicate (orb
))
11 Client_Task::terminate_loop ()
13 ACE_GUARD (TAO_SYNCH_MUTEX
, ace_mon
, this->mutex_
);
14 this->terminate_loop_
= 1;
20 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) Starting client task\n"));
25 // run the even loop for 1 second...
26 ACE_Time_Value
tv (1, 0);
29 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX
, ace_mon
, this->mutex_
, -1);
30 if (this->terminate_loop_
!= 0)
34 catch (const CORBA::Exception
&)
38 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) Client task finished\n"));