Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / MT_BiDir / Server_Task.h
blob71c65b4a4c2b57c13e606d078f32ce5c36c76d6f
1 // -*- C++ -*-
2 #ifndef MT_BIDIR_SERVER_TASK_H
3 #define MT_BIDIR_SERVER_TASK_H
5 #include /**/ "ace/pre.h"
7 #include "ace/Task.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 # pragma once
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 #include "tao/ORB.h"
15 class Sender_i;
17 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
18 class ACE_Manual_Event;
19 ACE_END_VERSIONED_NAMESPACE_DECL
21 /// Implement a Task to run the experiments using multiple threads.
22 class Server_Task : public ACE_Task_Base
24 public:
25 /// Constructor
26 Server_Task (Sender_i *s,
27 ACE_Manual_Event &event,
28 int no_iterations,
29 CORBA::ORB_ptr orb,
30 ACE_Thread_Manager *thr_mgr);
32 /// Thread entry point
33 int svc ();
35 private:
36 /// The sender object
37 Sender_i *sender_;
39 /// The synchronizer
40 ACE_Manual_Event &event_;
42 /// Number of messages that needs to be sent
43 int no_iterations_;
45 /// The ORB on which we run..
46 CORBA::ORB_var orb_;
49 #include /**/ "ace/post.h"
51 #endif /* MT_BIDIR_SERVER_TASK_H */