summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Notify/ThreadPool/ORB_Run_Task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/Notify/ThreadPool/ORB_Run_Task.cpp')
-rw-r--r--TAO/orbsvcs/examples/Notify/ThreadPool/ORB_Run_Task.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/Notify/ThreadPool/ORB_Run_Task.cpp b/TAO/orbsvcs/examples/Notify/ThreadPool/ORB_Run_Task.cpp
new file mode 100644
index 00000000000..ea8601551c0
--- /dev/null
+++ b/TAO/orbsvcs/examples/Notify/ThreadPool/ORB_Run_Task.cpp
@@ -0,0 +1,33 @@
+// $Id$
+
+#include "ORB_Run_Task.h"
+
+ACE_RCSID(Notify, TAO_Notify_ORB_Run_Task, "$id$")
+
+TAO_Notify_ORB_Run_Task::TAO_Notify_ORB_Run_Task (TAO_Notify_ORB_Objects& orb_objects)
+ : orb_objects_ (orb_objects)
+{
+}
+
+TAO_Notify_ORB_Run_Task::~TAO_Notify_ORB_Run_Task ()
+{
+}
+
+int
+TAO_Notify_ORB_Run_Task::svc (void)
+{
+ ACE_TRY_NEW_ENV
+ {
+ this->orb_objects_.current_->the_priority (0 ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ this->orb_objects_.orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ }
+ ACE_ENDTRY;
+
+ return 0;
+}