2 #include "OrbShutdownTask.h"
4 Foo_i::Foo_i(unsigned num_clients
)
6 num_clients_(num_clients
),
14 "(%P|%t) Number of clients for Foo_i servant: %d\n",
28 // Sleep for 10 milliseconds (10,000 microseconds)
29 //ACE_OS::sleep(ACE_Time_Value(0,10000));
34 Foo_i::op2(CORBA::Long value
)
50 Foo_i::op4(CORBA::Long value
)
55 if (this->count_op4_
% 500 == 0)
58 "(%P|%t) op4() has been called %d times now. value == %d\n",
59 this->count_op4_
, this->value_
));
62 // Sleep for 10 milliseconds (10,000 microseconds)
63 //ACE_OS::sleep(ACE_Time_Value(0,10000));
77 unsigned num_left
= --this->num_clients_
;
80 "(%P|%t) A client has reported that it is done(). "
81 "There are %d clients left.\n", num_left
));
85 ACE_DEBUG((LM_DEBUG
, "(%P|%t) Stats:\n"
97 if (TheOrbShutdownTask::instance()->open(0) != 0)
99 ACE_ERROR((LM_ERROR
, "(%P|%t)Foo_i::done: failed to create orb "\
100 "shutdown thread.\n"));