Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / performance-tests / Latency / Collocation / Server_Task.h
blob86c8428ce3b968bf1df60d1321ac8434fb089cc1
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:
32 ACE_Manual_Event &cond_;
33 /// Manual event to wake up the main thread to create a client
34 /// thread.
36 CORBA::ORB_var sorb_;
37 Test::Roundtrip_var rt_var_;
40 #include /**/ "ace/post.h"
41 #endif /* COLLOCATED_SERVER_TASK_H */