Merge pull request #2316 from jwillemsen/jwi-taskcommenttypo
[ACE_TAO.git] / TAO / tests / Oneways_Invoking_Twoways / Client_Task.h
blobfa2065ae72bb476eef49c17cd1175ceb9adbc8d0
2 #ifndef ONEWAYS_INVOKING_TWOWAYS_CLIENT_TASK_H
3 #define ONEWAYS_INVOKING_TWOWAYS_CLIENT_TASK_H
4 #include /**/ "ace/pre.h"
6 #include "TestC.h"
7 #include "Receiver_i.h"
8 #include "ace/Task.h"
10 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 # pragma once
12 #endif /* ACE_LACKS_PRAGMA_ONCE */
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 sender,
20 Test::Receiver_ptr us,
21 ACE_Thread_Manager *thr_mgr,
22 Receiver_i * receiver_impl);
24 /// Thread entry point
25 int svc ();
27 private:
28 /// Reference to the test interface
29 Test::Sender_var sender_;
31 /// Reference to the test interface
32 Test::Receiver_var us_;
34 Receiver_i* receiver_impl_;
37 #include /**/ "ace/post.h"
38 #endif /* ONEWAYS_INVOKING_TWOWAYS_CLIENT_TASK_H */