Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool2 / Foo_i.cpp
blob12bf846557a3769ce485a16cec8b78c1ff333d57
1 #include "Foo_i.h"
2 #include "FooServantList.h"
4 Foo_i::Foo_i(const ACE_TCHAR* servant_name,FooServantList* mgr)
5 : value_(0),
6 count_op1_(0),
7 count_op2_(0),
8 count_op3_(0),
9 count_op4_(0),
10 count_op5_(0),
11 servant_name_(servant_name),
12 mgr_(mgr)
17 Foo_i::~Foo_i()
22 void
23 Foo_i::op1()
25 ++this->count_op1_;
26 // Sleep for 10 milliseconds (10,000 microseconds)
27 //ACE_OS::sleep(ACE_Time_Value(0,10000));
31 void
32 Foo_i::op2(CORBA::Long value)
34 ++this->count_op2_;
35 this->value_ = value;
39 CORBA::Long
40 Foo_i::op3()
42 ++this->count_op3_;
43 return this->value_;
47 void
48 Foo_i::op4(CORBA::Long value)
50 ++this->count_op4_;
51 this->value_ = value;
53 if (this->count_op4_ % 100 == 0)
55 ACE_DEBUG((LM_DEBUG,
56 "(%P|%t) op4() has been called %d times now. value == %d\n",
57 this->count_op4_, this->value_));
60 // Sleep for 10 milliseconds (10,000 microseconds)
61 //ACE_OS::sleep(ACE_Time_Value(0,10000));
65 void
66 Foo_i::op5()
68 ++this->count_op5_;
72 void
73 Foo_i::done()
75 this->mgr_->client_done();