Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Collocation_Oneway_Tests / Client_Task.h
blobaccef8a3c76cf8174ba11e72fa8c1855511d9943
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:
18 enum ClientSyncModeEnum {
19 MODE_NONE,
20 MODE_TRANSPORT,
21 MODE_SERVER,
22 MODE_TARGET
25 /// Constructor
26 Client_Task (const ACE_TCHAR *input,
27 CORBA::ORB_ptr corb,
28 ClientSyncModeEnum syncMode,
29 ACE_Thread_Manager *thr_mgr);
31 /// Thread entry point
32 int svc (void);
34 private:
35 const ACE_TCHAR *input_;
37 CORBA::ORB_var corb_;
39 ClientSyncModeEnum syncMode_;
42 #include /**/ "ace/post.h"
43 #endif /* COLLOCATED_TEST_CLIENT_TASK_H */