Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / DII_Collocation_Tests / oneway / Server_Task.h
blobfde0740eebeb463bd7cf1c7f60e36d1687a365e3
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 const ACE_TCHAR *simple_test_output,
26 CORBA::ORB_ptr sorb,
27 ACE_Manual_Event &me,
28 ACE_Thread_Manager *thr_mgr);
30 /// Thread entry point
31 int svc ();
33 CORBA::ULong error_count () const;
35 private:
36 /// Output file for server IOR
37 const ACE_TCHAR *output_;
39 /// Output file for Simple_Test IOR
40 const ACE_TCHAR *simple_test_output_;
42 /// Manual event to wake up the main thread to create a client
43 /// thread.
44 ACE_Manual_Event &me_;
46 CORBA::ORB_var sorb_;
48 CORBA::ULong error_count_;
51 #include /**/ "ace/post.h"
53 #endif /* COLLOCATED_SERVER_TASK_H */