Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_1482_Regression / Client_Task.h
blob203b18adea3ca565de1540b55c9c461876fd820e
2 #ifndef LONGUPCALLS_CLIENT_TASK_H
3 #define LONGUPCALLS_CLIENT_TASK_H
4 #include /**/ "ace/pre.h"
6 #include "TestC.h"
8 #if !defined (ACE_LACKS_PRAGMA_ONCE)
9 # pragma once
10 #endif /* ACE_LACKS_PRAGMA_ONCE */
12 #include "Reply_Handler.h"
13 #include "ace/Task.h"
15 /// Implement a Task to run the experiments using multiple threads.
16 class Client_Task : public ACE_Task_Base
18 public:
19 /// Constructor
20 Client_Task (Test::Hello_ptr receiver,
21 CORBA::ORB_ptr o,
22 ACE_Thread_Manager *thr_mgr);
24 /// Thread entry point
25 int svc ();
27 private:
28 /// Reference to the test interface
29 Test::Hello_var receiver_;
31 Reply_Handler handler_;
33 Test::AMI_HelloHandler_var handler_var_;
35 CORBA::ORB_var orb_;
37 #include /**/ "ace/post.h"
38 #endif /* LONGUPCALLS_CLIENT_TASK_H */