Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_1495_Regression / Server_Task.h
blob86383eaae2b0829adc9e5623b0c33cdbf44d7501
1 /**
2 * @file Server_Task.h
3 * @author Will Otte <w.otte@dre.vanderbilt.edu>
5 * Defines the Server_Task class that acts as a process colocated ORB server
6 * for Bug_1495_Regression.
7 */
9 #ifndef BUG1495_SERVER_TASK_H
10 #define BUG1495_SERVER_TASK_H
12 #include /**/ "ace/pre.h"
13 #include "ace/Task.h"
15 #include "tao/ORB.h"
17 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
18 class ACE_Manual_Event;
19 ACE_END_VERSIONED_NAMESPACE_DECL
21 /// Implements the Task to run the process colocated thread.
22 class Server_Task : public ACE_Task_Base
24 public:
25 /// Constructor
26 Server_Task (const ACE_TCHAR *output,
27 CORBA::ORB_ptr sorb,
28 ACE_Manual_Event &me,
29 ACE_Thread_Manager *thr_mgr);
31 /// Thread entry point
32 int svc (void);
34 private:
35 /// Output file for the server IOR
36 const ACE_TCHAR *output_;
38 /// Manual thread event to signal the main thread to create
39 /// the client thread.
40 ACE_Manual_Event &me_;
42 /// Points to my ORB.
43 CORBA::ORB_var sorb_;
46 #include /**/ "ace/post.h"
48 #endif /* BUG1495_SERVER_TASK_H */