diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-01-24 15:39:09 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-01-24 15:39:09 +0000 |
commit | c801f87e59c00f72bdeb5ce7bd0d276674665bac (patch) | |
tree | 70bff03d1cf156ecf05ee4c5c338d8ce423e64ee /TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp | |
parent | 98c0b37d4714ff774fc3ada8c9ee893c719af714 (diff) | |
download | ATCD-c801f87e59c00f72bdeb5ce7bd0d276674665bac.tar.gz |
Wed Jan 24 14:00:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp')
-rw-r--r-- | TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp b/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp index c3a276474ba..30ea9a7c75e 100644 --- a/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp +++ b/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp @@ -253,7 +253,6 @@ child_poa_testing (PortableServer::POA_ptr root_poa policies[0] = root_poa->create_id_assignment_policy (PortableServer::USER_ID ACE_ENV_ARG_PARAMETER); - ACE_CHECK; // Create the child POA under the RootPOA. PortableServer::POA_var child_poa = @@ -261,7 +260,6 @@ child_poa_testing (PortableServer::POA_ptr root_poa PortableServer::POAManager::_nil (), policies ACE_ENV_ARG_PARAMETER); - ACE_CHECK; // Create an array of servants test_i *servants = @@ -300,7 +298,6 @@ child_poa_testing (PortableServer::POA_ptr root_poa child_poa->create_reference_with_id (object_ids[i].in (), "IDL:test:1.0" ACE_ENV_ARG_PARAMETER); - ACE_CHECK; } } @@ -315,7 +312,6 @@ child_poa_testing (PortableServer::POA_ptr root_poa child_poa->activate_object_with_id (object_ids[i].in (), &servants[i] ACE_ENV_ARG_PARAMETER); - ACE_CHECK; } } @@ -329,7 +325,6 @@ child_poa_testing (PortableServer::POA_ptr root_poa { child_poa->deactivate_object (object_ids[i].in () ACE_ENV_ARG_PARAMETER); - ACE_CHECK; } } @@ -351,7 +346,6 @@ main (int argc, char **argv) argv, 0 ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; int result = parse_args (argc, argv); if (result != 0) @@ -360,13 +354,11 @@ main (int argc, char **argv) // Obtain the RootPOA. CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; // Get the POA_var object from Object_var. PortableServer::POA_var root_poa = PortableServer::POA::_narrow (obj.in () ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; // Create an array of servants test_i *servants = @@ -395,8 +387,7 @@ main (int argc, char **argv) for (i = 0; i < iterations; i++) { - objects[i] = servants[i]._this (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; + objects[i] = servants[i]._this (); } } @@ -409,20 +400,17 @@ main (int argc, char **argv) { object_ids[i] = root_poa->servant_to_id (&servants[i] ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; } } // Create the child POA. child_poa_testing (root_poa.in () ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; // Destroy RootPOA. root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; // Cleanup delete[] object_ids; @@ -435,7 +423,6 @@ main (int argc, char **argv) return -1; } ACE_ENDTRY; - ACE_CHECK_RETURN (-1); return 0; } |