Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool3 / Foo_i.cpp
blob5018a78c8729b5dfee417e165ad93970301e1f9a
1 #include "Foo_i.h"
2 #include "OrbShutdownTask.h"
5 Foo_i::Foo_i(unsigned num_clients)
6 : value_(0),
7 num_clients_(num_clients)
12 Foo_i::~Foo_i()
17 void
18 Foo_i::op1(void)
23 void
24 Foo_i::op2(CORBA::Long value)
26 this->value_ = value;
30 CORBA::Long
31 Foo_i::op3(void)
33 return this->value_;
38 void
39 Foo_i::op4(CORBA::Long value)
41 this->value_ = value;
45 void
46 Foo_i::op5(void)
48 throw FooException();
52 void
53 Foo_i::done(void)
55 unsigned num_left = --this->num_clients_;
57 if (num_left == 0)
59 if (TheOrbShutdownTask::instance()->open(0) != 0)
61 ACE_ERROR((LM_ERROR, "(%P|%t)Foo_i::done: "
62 "failed to create orb shutdown thread.\n"));