summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Task_Activator.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Task_Activator.h')
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Task_Activator.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Task_Activator.h b/TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Task_Activator.h
new file mode 100644
index 00000000000..1a81ca995cc
--- /dev/null
+++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/ORB_Task_Activator.h
@@ -0,0 +1,42 @@
+/**
+ * @file ORB_Task_Activator.h
+ *
+ * $Id$
+ *
+ * @author Carlos O'Ryan <coryan@uci.edu>
+ */
+
+#ifndef TAO_PERF_RTEC_ORB_TASK_ACTIVATOR_H
+#define TAO_PERF_RTEC_ORB_TASK_ACTIVATOR_H
+
+#include "ORB_Task.h"
+#include "Task_Activator.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+/**
+ * @class ORB_Task_Activator
+ *
+ * @brief Implement a helper class to activate and stop Send_Tasks.
+ *
+ */
+class TAO_RTEC_Perf_Export ORB_Task_Activator : public Task_Activator<ORB_Task>
+{
+public:
+ /// Constructor
+ ORB_Task_Activator (int priority,
+ int scheduling_class,
+ int nthreads,
+ ORB_Task *task);
+
+ /// Destructor, stop the task and wait for it
+ ~ORB_Task_Activator (void);
+};
+
+#if defined(__ACE_INLINE__)
+#include "ORB_Task_Activator.inl"
+#endif /* __ACE_INLINE__ */
+
+#endif /* TAO_PERF_RTEC_ORB_TASK_ACTIVATOR_H */