blob: 88ce953eee761ab0b2532d6ba2c9cdd5e01423fa (
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
|
// $Id$
#ifndef _ORB_TASK_
#define _ORB_TASK_
#include "tao/ORB_Core.h"
#include "ace/Task.h"
class ORB_Task : public ACE_Task_Base
{
private:
CORBA::ORB_var orb_;
public:
ORB_Task (CORBA::ORB_ptr orb)
: orb_ (CORBA::ORB::_duplicate (orb))
{
if (CORBA::is_nil (orb_.in()) == 1) {
ACE_ERROR ((LM_ERROR, "ORB_Task> Ctr> Orb is NULL\n"));
}
};
virtual int svc ()
{
if (CORBA::is_nil (orb_.in()) == 0) {
orb_->run();
}
return -1;
};
};
#endif // _ORB_TASK_
|