summaryrefslogtreecommitdiff
path: root/ACE/TAO/orbsvcs/FTRT_Event_Service/Event_Service/TP_Task.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/orbsvcs/FTRT_Event_Service/Event_Service/TP_Task.h')
-rw-r--r--ACE/TAO/orbsvcs/FTRT_Event_Service/Event_Service/TP_Task.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/FTRT_Event_Service/Event_Service/TP_Task.h b/ACE/TAO/orbsvcs/FTRT_Event_Service/Event_Service/TP_Task.h
new file mode 100644
index 00000000000..f5f2d410cac
--- /dev/null
+++ b/ACE/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