Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / COIOP_Naming_Test / Client_Task.h
blob0f02aee45e9b4c66d06fe2abdf363f842e90b139
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 */
11 #include "tao/ORB.h"
12 #include "orbsvcs/CosNamingC.h"
14 /// Implement a Task to run the client as a thread
15 class Client_Task : public ACE_Task_Base
17 public:
19 /// Constructor
20 Client_Task (CosNaming::NamingContext_ptr root_context,
21 CORBA::ORB_ptr corb,
22 ACE_Thread_Manager *thr_mgr,
23 CORBA::Boolean result);
25 /// Thread entry point
26 int svc (void);
28 private:
29 CosNaming::NamingContext_var root_context_;
31 CORBA::ORB_var corb_;
33 // Boolean to indicate whether the invocation should work or not.
34 CORBA::Boolean result_;
37 #include /**/ "ace/post.h"
38 #endif /* COLLOCATED_TEST_CLIENT_TASK_H */