blob: 30c6c9f41e9ea8c5592251505f21ece7cd9d4051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifndef TESTCALLBACK_H
#define TESTCALLBACK_H
#include /**/ "ace/pre.h"
#include "TestS.h"
#include "ace/Task.h"
class Worker : public ACE_Task_Base
{
public:
Worker(CORBA::ORB_ptr orb) : orb_(CORBA::ORB::_duplicate(orb))
{
}
int svc()
{
orb_->run();
return 0;
}
private:
CORBA::ORB_var orb_;
};
/// Implement the Test::TestCallback interface
class TestCallback
: public virtual POA_Test::TestCallback
{
public:
/// Constructor
TestCallback (CORBA::ORB_ptr orb);
// = The skeleton methods
virtual void start_threads_and_block ();
virtual void test_call ();
virtual void shutdown ();
private:
Worker work_;
};
#include /**/ "ace/post.h"
#endif /* TESTCALLBACK_H */
|