Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / performance-tests / CSD_Strategy / TestInf / ClientTask.h
blob0cdb53fbafd01e71f98a1a3617fa2125d2a8399b
1 //=============================================================================
2 /**
3 * @file ClientTask.h
5 * @author Tim Bradley <bradley_t@ociweb.com>
6 */
7 //=============================================================================
9 #ifndef CLIENT_TASK_H
10 #define CLIENT_TASK_H
12 #include "CSD_PT_TestInf_Export.h"
13 #include "ClientEngine.h"
14 #include "ace/Task.h"
15 #include "ace/Vector_T.h"
16 #include "ace/Synch.h"
18 class CSD_PT_TestInf_Export ClientTask : public ACE_Task_Base
20 public:
21 ClientTask();
22 virtual ~ClientTask();
24 void add_engine(ClientEngine* engine);
25 void num_loops(unsigned num_loops);
27 virtual int open(void* arg = 0);
28 virtual int svc();
29 virtual int close(u_long);
31 unsigned failure_count() const;
33 private:
34 typedef ACE_Vector<ClientEngine_Handle> EngineVector;
36 TAO_SYNCH_MUTEX lock_;
37 EngineVector engines_;
38 unsigned failure_count_;
39 unsigned num_loops_;
42 #endif