summaryrefslogtreecommitdiff
path: root/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp')
-rw-r--r--CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp b/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
index 79ad17402dc..cab0d836e37 100644
--- a/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
+++ b/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
@@ -443,10 +443,10 @@ namespace CIAO
RTCORBA::PriorityMappingManager_var mapping_manager =
RTCORBA::PriorityMappingManager::_narrow (object.in ());
- RTCORBA::PriorityMapping *pm =
- mapping_manager->mapping ();
-
- int sched_policy =
+ RTCORBA::PriorityMapping *pm =
+ mapping_manager->mapping ();
+
+ int sched_policy =
this->orb_->orb_core ()->orb_params ()->ace_sched_policy ();
int max_priority =
@@ -457,13 +457,11 @@ namespace CIAO
CORBA::Short native_priority =
(max_priority + min_priority) / 2;
- // CORBA::Short desired_priority = 0;
-
- //if (pm->to_CORBA (native_priority, desired_priority) == 0)
- // ACE_ERROR_RETURN ((LM_ERROR,
- // "Cannot convert native priority %d to corba priority\n",
- // native_priority),
- // false);
+ if (pm->to_CORBA (native_priority, desired_priority) == 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Cannot convert native priority %d to corba priority\n",
+ native_priority),
+ false);
current->the_priority (desired_priority);