diff options
Diffstat (limited to 'TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp')
-rw-r--r-- | TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp b/TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp index ecf9f4bdeec..2a6556b837a 100644 --- a/TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp +++ b/TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp @@ -386,8 +386,8 @@ set_rt_mode (void) } else ACE_ERROR ((LM_ERROR, - "client (%P|%t): sched_params failed %p\n", - "set_rt_mode")); + "client (%P|%t): sched_params failed %p\n", + "set_rt_mode")); } // Get our thread handle. @@ -397,8 +397,8 @@ set_rt_mode (void) // Set our thread priority. if (ACE_OS::thr_setprio (self, priority) != 0) ACE_ERROR ((LM_ERROR, - "server (%P|%t):thr_setprio failed %p\n", - "set_rt_mode")); + "server (%P|%t):thr_setprio failed %p\n", + "set_rt_mode")); // Do a sanity check. if (ACE_OS::thr_getprio (self, priority) == 0) @@ -438,20 +438,11 @@ main (int argc, char *argv[]) } CORBA::Object_var obj = - orb->resolve_initial_references ("RootPOA", + orb->resolve_initial_references ("ORBPolicyManager", ACE_TRY_ENV); ACE_TRY_CHECK; - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (obj.in (), - ACE_TRY_ENV); - ACE_TRY_CHECK; - - obj = orb->resolve_initial_references ("ORBPolicyManager", - ACE_TRY_ENV); - ACE_TRY_CHECK; - - CORBA::PolicyManager_var policy_manager = + CORBA::PolicyManager_var policy_manager = CORBA::PolicyManager::_narrow (obj.in (), ACE_TRY_ENV); ACE_TRY_CHECK; @@ -460,7 +451,7 @@ main (int argc, char *argv[]) ACE_TRY_ENV); ACE_TRY_CHECK; - CORBA::PolicyCurrent_var policy_current = + CORBA::PolicyCurrent_var policy_current = CORBA::PolicyCurrent::_narrow (obj.in (), ACE_TRY_ENV); @@ -590,11 +581,6 @@ main (int argc, char *argv[]) ACE_TRY_CHECK; } - root_poa->destroy (1, - 1, - ACE_TRY_ENV); - ACE_TRY_CHECK; - if (shutdown_server) { ACE_DEBUG ((LM_DEBUG, |