diff options
Diffstat (limited to 'TAO/orbsvcs/FTRT_Event_Service/Event_Service/TP_Task.h')
-rw-r--r-- | TAO/orbsvcs/FTRT_Event_Service/Event_Service/TP_Task.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/TAO/orbsvcs/FTRT_Event_Service/Event_Service/TP_Task.h b/TAO/orbsvcs/FTRT_Event_Service/Event_Service/TP_Task.h new file mode 100644 index 00000000000..f5f2d410cac --- /dev/null +++ b/TAO/orbsvcs/FTRT_Event_Service/Event_Service/TP_Task.h @@ -0,0 +1,38 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file TP_Task.h + * + * $Id$ + * + * @author Huang-Ming Huang <hh1@cse.wustl.edu> + */ +//============================================================================= +#ifndef TP_TASK_H +#define TP_TASK_H + +#include "ace/Task.h" +#include "tao/corba.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class TP_Task : public ACE_Task_Base { +public: + TP_Task(CORBA::ORB_var& orb) + : orb_(orb) + { + } + + ~TP_Task(){} + virtual int svc() { + this->orb_->run(); + return 0; + } +private: + CORBA::ORB_var& orb_; +}; + +#endif |