Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / CSD_Strategy_Tests / TP_Common / ClientTask.h
blob29f046e1055cb0b8f13e207d212ef769dc840839
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_TP_Test_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_TP_Test_Export ClientTask : public ACE_Task_Base
20 public:
21 ClientTask(bool shutdown_after_done = false);
22 virtual ~ClientTask();
24 void add_engine(ClientEngine* engine);
26 virtual int open(void* arg = 0);
27 virtual int svc();
28 virtual int close(u_long);
30 unsigned failure_count () const;
32 private:
33 typedef ACE_Vector<ClientEngine_Handle> EngineVector;
35 TAO_SYNCH_MUTEX lock_;
36 EngineVector engines_;
37 bool shutdown_after_done_;
38 unsigned failure_count_;
41 #endif