More tests update
[ACE_TAO.git] / TAO / tests / Stack_Recursion / Client_Task.h
blob85ca7e45a0cc4289317473cb12d02c0feb69a98c
2 #ifndef STACK_RECURSION_CLIENT_TASK_H
3 #define STACK_RECURSION_CLIENT_TASK_H
4 #include /**/ "ace/pre.h"
5 #include "TestC.h"
8 #if !defined (ACE_LACKS_PRAGMA_ONCE)
9 # pragma once
10 #endif /* ACE_LACKS_PRAGMA_ONCE */
12 #include "ace/Task.h"
14 /// Implement a Task to run the experiments using multiple threads.
15 class Client_Task : public ACE_Task_Base
17 public:
18 /// Constructor
19 Client_Task (Test::Sender_ptr receiver,
20 CORBA::Long event_count,
21 CORBA::ULong event_size,
22 ACE_Thread_Manager *thr_mgr);
24 /// Thread entry point
25 int svc (void);
27 private:
29 /// Simple pings to prune up the connections
30 void validate_connections (void);
32 private:
33 /// Reference to the test interface
34 Test::Sender_var sender_;
36 /// Total number of events
37 CORBA::Long event_count_;
39 /// Size of each message
40 CORBA::ULong event_size_;
43 #include /**/ "ace/post.h"
44 #endif /* STACK_RECURSION_CLIENT_TASK_H */