Continued changes from peer review
[ACE_TAO.git] / TAO / tests / Oneway_Send_Timeouts / ORB_Task.h
blob60b870e3799e3074040f8ae030d22f01bac5f674
1 #ifndef _ORB_TASK_
2 #define _ORB_TASK_
4 #include "tao/ORB_Core.h"
6 #include "ace/Task.h"
8 class ORB_Task : public ACE_Task_Base
10 private:
11 CORBA::ORB_var orb_;
13 public:
14 ORB_Task (CORBA::ORB_ptr orb)
15 : orb_ (CORBA::ORB::_duplicate (orb))
17 if (CORBA::is_nil (orb_.in()) == 1) {
18 ACE_ERROR ((LM_ERROR, "ORB_Task> Ctr> Orb is NULL\n"));
22 virtual int svc ()
24 if (CORBA::is_nil (orb_.in()) == 0) {
25 orb_->run();
28 return -1;
32 #endif // _ORB_TASK_