Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Stack_Recursion / Client_Task.h
blobbd87305f41e896f7afb414fc6f70662ce35ff386
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 ();
27 private:
28 /// Simple pings to prune up the connections
29 void validate_connections ();
31 private:
32 /// Reference to the test interface
33 Test::Sender_var sender_;
35 /// Total number of events
36 CORBA::Long event_count_;
38 /// Size of each message
39 CORBA::ULong event_size_;
42 #include /**/ "ace/post.h"
43 #endif /* STACK_RECURSION_CLIENT_TASK_H */