Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / MT_Timeout / Server_Task.h
blob0128d2bc480a6108aa208907b0cbf913932e180d
2 #ifndef SERVER_TASK_H
3 #define SERVER_TASK_H
4 #include /**/ "ace/pre.h"
6 #include "tao/ORB.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 Server_Task : public ACE_Task_Base
16 public:
17 /// Constructor
18 Server_Task (ACE_Thread_Manager *thr_mgr,
19 CORBA::ORB_ptr orb,
20 const ACE_Time_Value &running_time);
22 /// Thread entry point
23 int svc ();
25 private:
26 /// Reference to the ORB
27 CORBA::ORB_var orb_;
29 /// Total running time for each thread
30 ACE_Time_Value running_time_;
33 #include /**/ "ace/post.h"
34 #endif /* SERVER_TASK_H */