Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / DII_Collocation_Tests / twoway / Server_Task.h
blob690c31bb2a70f7ad64a75e0ccfe8671d78f24b07
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"
14 #include "ace/Manual_Event.h"
16 /// Implement a Task to run the server in a single thread
17 class Server_Task : public ACE_Task_Base
19 public:
20 /// Constructor
21 Server_Task (const ACE_TCHAR *output,
22 const ACE_TCHAR *simple_test_output,
23 CORBA::ORB_ptr sorb,
24 ACE_Manual_Event &me,
25 ACE_Thread_Manager *thr_mgr);
27 /// Thread entry point
28 int svc (void);
30 CORBA::ULong error_count () const;
32 private:
33 /// Output file for server IOR
34 const ACE_TCHAR *output_;
36 /// Output file for Simple_Test IOR
37 const ACE_TCHAR *simple_test_output_;
39 /// Manual event to wake up the main thread to create a client
40 /// thread.
41 ACE_Manual_Event &me_;
43 CORBA::ORB_var sorb_;
45 CORBA::ULong error_count_;
48 #include /**/ "ace/post.h"
50 #endif /* COLLOCATED_SERVER_TASK_H */