Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool2 / FooServantList.h
blob03e77be65a764f7904c444a090d3a5456936f246
1 #ifndef FOOSERVANTLIST_H
2 #define FOOSERVANTLIST_H
4 #include "tao/ORB.h"
5 #include "tao/PortableServer/PortableServer.h"
6 #include "tao/PortableServer/Servant_Base.h"
7 #include "ace/SString.h"
10 class FooServantList
12 public:
13 FooServantList(const ACE_TCHAR* prefix,
14 unsigned num_servants,
15 unsigned num_clients,
16 CORBA::ORB_ptr orb);
17 ~FooServantList();
19 void create_and_activate(PortableServer::POA_ptr poa);
21 void client_done();
23 private:
24 PortableServer::ServantBase_var* servants_;
25 ACE_TString prefix_;
26 unsigned num_servants_;
28 ACE_Atomic_Op <TAO_SYNCH_MUTEX, unsigned> num_clients_;
30 CORBA::ORB_var orb_;
33 #endif