summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/POA/Create_Reference/create_reference.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/POA/Create_Reference/create_reference.cpp')
-rw-r--r--TAO/performance-tests/POA/Create_Reference/create_reference.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/TAO/performance-tests/POA/Create_Reference/create_reference.cpp b/TAO/performance-tests/POA/Create_Reference/create_reference.cpp
index 356f3c6ecbb..4257f6b4993 100644
--- a/TAO/performance-tests/POA/Create_Reference/create_reference.cpp
+++ b/TAO/performance-tests/POA/Create_Reference/create_reference.cpp
@@ -106,14 +106,12 @@ object_creation_test (PortableServer::POA_ptr poa,
poa->create_reference_with_id (oid.in (),
"IDL:Test/Simple:1.0"
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
}
else
{
object =
poa->create_reference ("IDL:Test/Simple:1.0"
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
}
ACE_hrtime_t now = ACE_OS::gethrtime ();
@@ -140,12 +138,10 @@ main (int argc, char *argv[])
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv, ""
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
CORBA::Object_var poa_object =
orb->resolve_initial_references ("RootPOA"
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
if (CORBA::is_nil (poa_object.in ()))
ACE_ERROR_RETURN ((LM_ERROR,
@@ -155,14 +151,11 @@ main (int argc, char *argv[])
PortableServer::POA_var root_poa =
PortableServer::POA::_narrow (poa_object.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ root_poa->the_POAManager ();
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ poa_manager->activate ();
if (parse_args (argc, argv) != 0)
return 1;
@@ -172,32 +165,26 @@ main (int argc, char *argv[])
policies[0] =
root_poa->create_id_assignment_policy (PortableServer::USER_ID
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
PortableServer::POA_var child_poa =
root_poa->create_POA ("TestPOA",
poa_manager.in (),
policies
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
gsf = ACE_High_Res_Timer::global_scale_factor ();
object_creation_test (root_poa.in (),
0 // POA::create_reference
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
object_creation_test (child_poa.in (),
1 // POA::create_reference_with_id
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->destroy ();
}
ACE_CATCHANY
{