Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_1476_Regression / Client_Task.h
bloba0ce97ce27ccb2b4a74ca35bb350399117ce9bc1
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 "ace/Task.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 # pragma once
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 /// Implement a Task to run the experiments using multiple threads.
14 class Client_Task : public ACE_Task_Base
16 public:
17 /// Constructor
18 Client_Task (CORBA::ORB_ptr orb,
19 Test::Sender_ptr sender,
20 ACE_Thread_Manager *thr_mgr,
21 int number_of_oneways);
23 /// Thread entry point
24 int svc ();
26 private:
27 /// Reference to the test interface
28 Test::Sender_var sender_;
30 /// Our Orb...
31 CORBA::ORB_var orb_;
33 /// Number of oneways to send
34 int number_;
37 #include /**/ "ace/post.h"
38 #endif /* ONEWAYS_INVOKING_TWOWAYS_CLIENT_TASK_H */