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 */
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
21 Server_Task (const ACE_TCHAR
*output
,
22 const ACE_TCHAR
*simple_test_output
,
25 ACE_Thread_Manager
*thr_mgr
);
27 /// Thread entry point
30 CORBA::ULong
error_count () const;
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
41 ACE_Manual_Event
&me_
;
45 CORBA::ULong error_count_
;
48 #include /**/ "ace/post.h"
50 #endif /* COLLOCATED_SERVER_TASK_H */