summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Deferred_Latency
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2001-12-08 21:59:30 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2001-12-08 21:59:30 +0000
commit63165b00e2d667e39e15cf084128d94a563d484e (patch)
tree6939cf1ed0a80ce8a3224d33f3d23c0e1b9a517f /TAO/performance-tests/Deferred_Latency
parent6579bccb3a3f22f882ef908ad5f7e1a65b00b133 (diff)
downloadATCD-63165b00e2d667e39e15cf084128d94a563d484e.tar.gz
Merged corba-env-clean branch.
Diffstat (limited to 'TAO/performance-tests/Deferred_Latency')
-rw-r--r--TAO/performance-tests/Deferred_Latency/Roundtrip.cpp8
-rw-r--r--TAO/performance-tests/Deferred_Latency/Roundtrip.h6
-rw-r--r--TAO/performance-tests/Deferred_Latency/client.cpp18
-rw-r--r--TAO/performance-tests/Deferred_Latency/server.cpp20
4 files changed, 26 insertions, 26 deletions
diff --git a/TAO/performance-tests/Deferred_Latency/Roundtrip.cpp b/TAO/performance-tests/Deferred_Latency/Roundtrip.cpp
index 81bdd10b90a..64a2f05468a 100644
--- a/TAO/performance-tests/Deferred_Latency/Roundtrip.cpp
+++ b/TAO/performance-tests/Deferred_Latency/Roundtrip.cpp
@@ -11,16 +11,16 @@ Roundtrip::Roundtrip (CORBA::ORB_ptr orb)
}
Test::Timestamp
-Roundtrip::test_method (Test::Timestamp send_time,
- CORBA::Environment &)
+Roundtrip::test_method (Test::Timestamp send_time
+ TAO_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return send_time;
}
void
-Roundtrip::shutdown (CORBA::Environment &ACE_TRY_ENV)
+Roundtrip::shutdown (TAO_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- this->orb_->shutdown (0, ACE_TRY_ENV);
+ this->orb_->shutdown (0 TAO_ENV_ARG_PARAMETER);
}
diff --git a/TAO/performance-tests/Deferred_Latency/Roundtrip.h b/TAO/performance-tests/Deferred_Latency/Roundtrip.h
index 5cc06d55013..5c264f18e1f 100644
--- a/TAO/performance-tests/Deferred_Latency/Roundtrip.h
+++ b/TAO/performance-tests/Deferred_Latency/Roundtrip.h
@@ -25,11 +25,11 @@ public:
Roundtrip (CORBA::ORB_ptr orb);
// = The skeleton methods
- virtual Test::Timestamp test_method (Test::Timestamp send_time,
- CORBA::Environment &ACE_TRY_ENV)
+ virtual Test::Timestamp test_method (Test::Timestamp send_time
+ TAO_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void shutdown (CORBA::Environment &ACE_TRY_ENV)
+ virtual void shutdown (TAO_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
diff --git a/TAO/performance-tests/Deferred_Latency/client.cpp b/TAO/performance-tests/Deferred_Latency/client.cpp
index aee7b04814c..a2ee46b8d11 100644
--- a/TAO/performance-tests/Deferred_Latency/client.cpp
+++ b/TAO/performance-tests/Deferred_Latency/client.cpp
@@ -93,18 +93,18 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "", ACE_TRY_ENV);
+ CORBA::ORB_init (argc, argv, "" TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (parse_args (argc, argv) != 0)
return 1;
CORBA::Object_var object =
- orb->string_to_object (ior, ACE_TRY_ENV);
+ orb->string_to_object (ior TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
Test::Roundtrip_var roundtrip =
- Test::Roundtrip::_narrow (object.in (), ACE_TRY_ENV);
+ Test::Roundtrip::_narrow (object.in () TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (CORBA::is_nil (roundtrip.in ()))
@@ -118,7 +118,7 @@ main (int argc, char *argv[])
for (int j = 0; j < 100; ++j)
{
ACE_hrtime_t start = 0;
- (void) roundtrip->test_method (start, ACE_TRY_ENV);
+ (void) roundtrip->test_method (start TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
@@ -138,20 +138,20 @@ main (int argc, char *argv[])
CORBA::ULongLong start = ACE_OS::gethrtime ();
request[j] =
- roundtrip->_request ("test_method",
- ACE_TRY_ENV);
+ roundtrip->_request ("test_method"
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
request[j]->add_in_arg () <<= start;
request[j]->set_return_type (CORBA::_tc_ulonglong);
- request[j]->send_deferred (ACE_TRY_ENV);
+ request[j]->send_deferred (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
for (j = 0; j != burst; ++j)
{
- request[j]->get_response (ACE_TRY_ENV);
+ request[j]->get_response (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::ULongLong retval;
@@ -187,7 +187,7 @@ main (int argc, char *argv[])
if (do_shutdown)
{
- roundtrip->shutdown (ACE_TRY_ENV);
+ roundtrip->shutdown (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
}
diff --git a/TAO/performance-tests/Deferred_Latency/server.cpp b/TAO/performance-tests/Deferred_Latency/server.cpp
index 641064ea327..5fb1e4454da 100644
--- a/TAO/performance-tests/Deferred_Latency/server.cpp
+++ b/TAO/performance-tests/Deferred_Latency/server.cpp
@@ -64,11 +64,11 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "", ACE_TRY_ENV);
+ CORBA::ORB_init (argc, argv, "" TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA", ACE_TRY_ENV);
+ orb->resolve_initial_references("RootPOA" TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (CORBA::is_nil (poa_object.in ()))
@@ -77,11 +77,11 @@ main (int argc, char *argv[])
1);
PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in (), ACE_TRY_ENV);
+ PortableServer::POA::_narrow (poa_object.in () TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_TRY_ENV);
+ root_poa->the_POAManager (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
if (parse_args (argc, argv) != 0)
@@ -94,11 +94,11 @@ main (int argc, char *argv[])
PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
Test::Roundtrip_var roundtrip =
- roundtrip_impl->_this (ACE_TRY_ENV);
+ roundtrip_impl->_this (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::String_var ior =
- orb->object_to_string (roundtrip.in (), ACE_TRY_ENV);
+ orb->object_to_string (roundtrip.in () TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
@@ -111,18 +111,18 @@ main (int argc, char *argv[])
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
- poa_manager->activate (ACE_TRY_ENV);
+ poa_manager->activate (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- orb->run (ACE_TRY_ENV);
+ orb->run (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
- root_poa->destroy (1, 1, ACE_TRY_ENV);
+ root_poa->destroy (1, 1 TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- orb->destroy (ACE_TRY_ENV);
+ orb->destroy (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY