2 #ifndef COLLOCATED_SERVER_TASK_H
3 #define COLLOCATED_SERVER_TASK_H
5 #include /**/ "ace/pre.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
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
24 Server_Task (const ACE_TCHAR
*output
,
25 const ACE_TCHAR
*simple_test_output
,
28 ACE_Thread_Manager
*thr_mgr
);
30 /// Thread entry point
33 CORBA::ULong
error_count () const;
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
44 ACE_Manual_Event
&me_
;
48 CORBA::ULong error_count_
;
51 #include /**/ "ace/post.h"
53 #endif /* COLLOCATED_SERVER_TASK_H */