Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / performance-tests / Latency / Collocation / Server_Task.h
blob0fa23d8b529cff6ed6f4c96466fcf22337514f90
2 #ifndef COLLOCATED_SERVER_TASK_H
3 #define COLLOCATED_SERVER_TASK_H
4 #include /**/ "ace/pre.h"
6 #include "ace/Task.h"
7 #include "ace/Manual_Event.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 # pragma once
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 #include "tao/ORB.h"
14 #include "TestC.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 (CORBA::ORB_ptr sorb,
22 ACE_Manual_Event &cond,
23 ACE_Thread_Manager *thr_mgr);
25 /// Thread entry point
26 int svc ();
28 //Test::Roundtrip_prt get_reference ();
29 Test::Roundtrip * get_reference ();
31 private:
33 ACE_Manual_Event &cond_;
34 /// Manual event to wake up the main thread to create a client
35 /// thread.
37 CORBA::ORB_var sorb_;
38 Test::Roundtrip_var rt_var_;
41 #include /**/ "ace/post.h"
42 #endif /* COLLOCATED_SERVER_TASK_H */