Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Collocation_Tests / Server_Task.h
blobcea47faeb95453b175833d171d1688595969bbf6
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 (void);
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 */