Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Bug_3768_Regression / TestCallback.h
blob30c6c9f41e9ea8c5592251505f21ece7cd9d4051
1 #ifndef TESTCALLBACK_H
2 #define TESTCALLBACK_H
3 #include /**/ "ace/pre.h"
5 #include "TestS.h"
6 #include "ace/Task.h"
8 class Worker : public ACE_Task_Base
10 public:
11 Worker(CORBA::ORB_ptr orb) : orb_(CORBA::ORB::_duplicate(orb))
15 int svc()
17 orb_->run();
18 return 0;
21 private:
22 CORBA::ORB_var orb_;
25 /// Implement the Test::TestCallback interface
26 class TestCallback
27 : public virtual POA_Test::TestCallback
29 public:
30 /// Constructor
31 TestCallback (CORBA::ORB_ptr orb);
33 // = The skeleton methods
34 virtual void start_threads_and_block ();
35 virtual void test_call ();
36 virtual void shutdown ();
38 private:
39 Worker work_;
42 #include /**/ "ace/post.h"
43 #endif /* TESTCALLBACK_H */