Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Collocation_Oneway_Tests / Client_Task.h
blobd67e7a8e46eb6e44ffe2b7152e76821ee2ac0c66
2 #ifndef COLLOCATED_TEST_CLIENT_TASK_H
3 #define COLLOCATED_TEST_CLIENT_TASK_H
4 #include /**/ "ace/pre.h"
5 #include "ace/Task.h"
7 #if !defined (ACE_LACKS_PRAGMA_ONCE)
8 # pragma once
9 #endif /* ACE_LACKS_PRAGMA_ONCE */
10 #include "tao/ORB.h"
13 /// Implement a Task to run the client as a thread
14 class Client_Task : public ACE_Task_Base
16 public:
17 enum ClientSyncModeEnum {
18 MODE_NONE,
19 MODE_TRANSPORT,
20 MODE_SERVER,
21 MODE_TARGET
24 /// Constructor
25 Client_Task (const ACE_TCHAR *input,
26 CORBA::ORB_ptr corb,
27 ClientSyncModeEnum syncMode,
28 ACE_Thread_Manager *thr_mgr);
30 /// Thread entry point
31 int svc ();
33 private:
34 const ACE_TCHAR *input_;
36 CORBA::ORB_var corb_;
38 ClientSyncModeEnum syncMode_;
41 #include /**/ "ace/post.h"
42 #endif /* COLLOCATED_TEST_CLIENT_TASK_H */