Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Collocated_DerivedIF / Server_Task.h
blob9f6a4ffa9125f3c2f7bd62d98fca34244c22b133
1 // -*- C++ -*-
2 #ifndef COLLOCATED_SERVER_TASK_H
3 #define COLLOCATED_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 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
16 class ACE_Manual_Event;
17 ACE_END_VERSIONED_NAMESPACE_DECL
19 /// Implement a Task to run the server in a single thread
20 class Server_Task : public ACE_Task_Base
22 public:
23 /// Constructor
24 Server_Task (const ACE_TCHAR *output,
25 CORBA::ORB_ptr sorb,
26 ACE_Manual_Event &me,
27 ACE_Thread_Manager *thr_mgr);
29 /// Thread entry point
30 int svc ();
32 private:
33 /// Output file for IOR
34 const ACE_TCHAR *output_;
36 /// Manual event to wake up the main thread to create a client
37 /// thread.
38 ACE_Manual_Event &me_;
40 CORBA::ORB_var sorb_;
43 #include /**/ "ace/post.h"
45 #endif /* COLLOCATED_SERVER_TASK_H */