From b70d6a7cc552d500543242051d9e746516ad6f4d Mon Sep 17 00:00:00 2001 From: Simon McQueen Date: Thu, 25 Sep 2008 08:12:53 +0000 Subject: ChangeLogTag: Thu Sep 25 07:47:24 UTC 2008 Simon McQueen --- TAO/tao/RTPortableServer/RT_Servant_Dispatcher.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'TAO/tao/RTPortableServer') diff --git a/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.cpp b/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.cpp index ca055294637..0335b3fd01b 100644 --- a/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.cpp +++ b/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.cpp @@ -205,7 +205,7 @@ TAO_RT_Servant_Dispatcher::pre_invoke_remote_request ( throw ::CORBA::DATA_CONVERSION (CORBA::OMGVMCID | 2, CORBA::COMPLETED_NO); - // Priority needs to be changed temporarily changed for the + // Priority needs to be temporarily changed for the // duration of request. if (target_priority != pre_invoke_state.original_CORBA_priority_) { @@ -346,8 +346,9 @@ TAO_RT_Servant_Dispatcher::post_invoke (TAO_Root_POA &poa, if (tph != 0) { - if (tph->set_thread_native_priority ( - pre_invoke_state.original_native_priority_) == -1) + if (tph->restore_thread_CORBA_and_native_priority ( + pre_invoke_state.original_CORBA_priority_, + pre_invoke_state.original_native_priority_) == -1) throw ::CORBA::DATA_CONVERSION (CORBA::OMGVMCID | 2, CORBA::COMPLETED_NO); } -- cgit v1.2.1