2 #ifndef COLLOCATED_SERVER_TASK_H
3 #define COLLOCATED_SERVER_TASK_H
4 #include /**/ "ace/pre.h"
7 #include "ace/Manual_Event.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
16 /// Implement a Task to run the server in a single thread
17 class Server_Task
: public ACE_Task_Base
21 Server_Task (CORBA::ORB_ptr sorb
,
22 ACE_Manual_Event
&cond
,
23 ACE_Thread_Manager
*thr_mgr
);
25 /// Thread entry point
28 //Test::Roundtrip_prt get_reference ();
29 Test::Roundtrip
* get_reference ();
32 ACE_Manual_Event
&cond_
;
33 /// Manual event to wake up the main thread to create a client
37 Test::Roundtrip_var rt_var_
;
40 #include /**/ "ace/post.h"
41 #endif /* COLLOCATED_SERVER_TASK_H */