Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Oneway_Send_Timeouts / ORB_Task.h
blob15ef11c98394552c7a456162a359a26f9264283f
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)
19 ACE_ERROR ((LM_ERROR, "ORB_Task> Ctr> Orb is NULL\n"));
23 virtual int svc ()
25 if (CORBA::is_nil (orb_.in ()) == 0)
27 orb_->run ();
30 return -1;
34 #endif // _ORB_TASK_