1 //=============================================================================
5 * @author Tim Bradley <bradley_t@ociweb.com>
7 //=============================================================================
12 #include "CSD_TP_Test_Export.h"
13 #include "ClientEngine.h"
15 #include "ace/Vector_T.h"
16 #include "ace/Synch.h"
18 class CSD_TP_Test_Export ClientTask
: public ACE_Task_Base
21 ClientTask(bool shutdown_after_done
= false);
22 virtual ~ClientTask();
24 void add_engine(ClientEngine
* engine
);
26 virtual int open(void* arg
= 0);
28 virtual int close(u_long
);
30 unsigned failure_count () const;
33 typedef ACE_Vector
<ClientEngine_Handle
> EngineVector
;
35 TAO_SYNCH_MUTEX lock_
;
36 EngineVector engines_
;
37 bool shutdown_after_done_
;
38 unsigned failure_count_
;