summaryrefslogtreecommitdiff
path: root/TAO/tao/DynamicInterface/Request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/DynamicInterface/Request.cpp')
-rw-r--r--TAO/tao/DynamicInterface/Request.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/TAO/tao/DynamicInterface/Request.cpp b/TAO/tao/DynamicInterface/Request.cpp
index 27aa0cc686e..4f4c740b39a 100644
--- a/TAO/tao/DynamicInterface/Request.cpp
+++ b/TAO/tao/DynamicInterface/Request.cpp
@@ -64,13 +64,13 @@ CORBA_Request::CORBA_Request (CORBA::Object_ptr obj,
CORBA::NVList_ptr args,
CORBA::NamedValue_ptr result,
CORBA::Flags flags,
- CORBA::ExceptionList_ptr exceptions,
- CORBA::Environment &env)
+ CORBA::ExceptionList_ptr exceptions
+ TAO_ENV_ARG_DECL_NOT_USED)
: orb_ (CORBA::ORB::_duplicate (orb)),
args_ (CORBA::NVList::_duplicate (args)),
result_ (CORBA::NamedValue::_duplicate (result)),
flags_ (flags),
- env_ (env),
+ // env_ (env),
exceptions_ (CORBA::ExceptionList::_duplicate (exceptions)),
contexts_ (0),
ctx_ (CORBA::Context::_nil ()),
@@ -94,11 +94,11 @@ CORBA_Request::CORBA_Request (CORBA::Object_ptr obj,
CORBA_Request::CORBA_Request (CORBA::Object_ptr obj,
CORBA::ORB_ptr orb,
- const CORBA::Char *op,
- CORBA::Environment &env)
+ const CORBA::Char *op
+ TAO_ENV_ARG_DECL_NOT_USED)
: orb_ (CORBA::ORB::_duplicate (orb)),
flags_ (0),
- env_ (env),
+ // env_ (env),
contexts_ (0),
ctx_ (CORBA::Context::_nil ()),
refcount_ (1),
@@ -141,7 +141,7 @@ CORBA_Request::~CORBA_Request (void)
// flow in some exotic situations.
void
-CORBA_Request::invoke (CORBA::Environment &ACE_TRY_ENV)
+CORBA_Request::invoke (TAO_ENV_SINGLE_ARG_DECL)
{
CORBA::Boolean argument_flag = this->args_->_lazy_has_arguments ();
@@ -156,25 +156,25 @@ CORBA_Request::invoke (CORBA::Environment &ACE_TRY_ENV)
// Loop as needed for forwarding.
for (;;)
{
- call.start (ACE_TRY_ENV);
+ call.start (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
call.prepare_header (ACE_static_cast (CORBA::Octet,
- flag),
- ACE_TRY_ENV);
+ flag)
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
this->args_->_tao_encode (call.out_stream (),
this->orb_->orb_core (),
- CORBA::ARG_IN | CORBA::ARG_INOUT,
- ACE_TRY_ENV);
+ CORBA::ARG_IN | CORBA::ARG_INOUT
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
// Make the call ... blocking for the response.
- int status = call.invoke (this->exceptions_.in (),
- ACE_TRY_ENV);
+ int status = call.invoke (this->exceptions_.in ()
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
if (status == TAO_INVOKE_RESTART)
@@ -216,19 +216,19 @@ CORBA_Request::invoke (CORBA::Environment &ACE_TRY_ENV)
if (this->result_ != 0)
{
- this->result_->value ()->_tao_decode (call.inp_stream (),
- ACE_TRY_ENV);
+ this->result_->value ()->_tao_decode (call.inp_stream ()
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
}
this->args_->_tao_incoming_cdr (call.inp_stream (),
CORBA::ARG_OUT | CORBA::ARG_INOUT,
- this->lazy_evaluation_,
- ACE_TRY_ENV);
+ this->lazy_evaluation_
+ TAO_ENV_ARG_PARAMETER);
}
void
-CORBA_Request::send_oneway (CORBA::Environment &ACE_TRY_ENV)
+CORBA_Request::send_oneway (TAO_ENV_SINGLE_ARG_DECL)
{
CORBA::Boolean argument_flag = this->args_->_lazy_has_arguments ();
@@ -242,23 +242,23 @@ CORBA_Request::send_oneway (CORBA::Environment &ACE_TRY_ENV)
// Loop as needed for forwarding.
for (;;)
{
- call.start (ACE_TRY_ENV);
+ call.start (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
CORBA::Octet response_flag = ACE_static_cast (CORBA::Octet,
call.sync_scope ());
- call.prepare_header (response_flag,
- ACE_TRY_ENV);
+ call.prepare_header (response_flag
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
this->args_->_tao_encode (call.out_stream (),
this->orb_->orb_core (),
- CORBA::ARG_IN | CORBA::ARG_INOUT,
- ACE_TRY_ENV);
+ CORBA::ARG_IN | CORBA::ARG_INOUT
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
- int status = call.invoke (ACE_TRY_ENV);
+ int status = call.invoke (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
if (status == TAO_INVOKE_RESTART)
@@ -288,7 +288,7 @@ CORBA_Request::send_oneway (CORBA::Environment &ACE_TRY_ENV)
}
void
-CORBA_Request::send_deferred (CORBA::Environment &ACE_TRY_ENV)
+CORBA_Request::send_deferred (TAO_ENV_SINGLE_ARG_DECL)
{
{
ACE_GUARD (TAO_SYNCH_MUTEX,
@@ -309,23 +309,23 @@ CORBA_Request::send_deferred (CORBA::Environment &ACE_TRY_ENV)
// Loop as needed for forwarding.
for (;;)
{
- call.start (ACE_TRY_ENV);
+ call.start (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
CORBA::Short flag = TAO_TWOWAY_RESPONSE_FLAG;
- call.prepare_header (ACE_static_cast (CORBA::Octet, flag),
- ACE_TRY_ENV);
+ call.prepare_header (ACE_static_cast (CORBA::Octet, flag)
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
this->args_->_tao_encode (call.out_stream (),
this->orb_->orb_core (),
- CORBA::ARG_IN | CORBA::ARG_INOUT,
- ACE_TRY_ENV);
+ CORBA::ARG_IN | CORBA::ARG_INOUT
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
// Make the call without blocking.
- CORBA::ULong status = call.invoke (ACE_TRY_ENV);
+ CORBA::ULong status = call.invoke (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
if (status == TAO_INVOKE_RESTART)
@@ -349,7 +349,7 @@ CORBA_Request::send_deferred (CORBA::Environment &ACE_TRY_ENV)
}
void
-CORBA_Request::get_response (CORBA::Environment &ACE_TRY_ENV)
+CORBA_Request::get_response (TAO_ENV_SINGLE_ARG_DECL)
{
while (!this->response_received_)
{
@@ -358,13 +358,13 @@ CORBA_Request::get_response (CORBA::Environment &ACE_TRY_ENV)
if (this->lazy_evaluation_)
{
- this->args_->evaluate (ACE_TRY_ENV);
+ this->args_->evaluate (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
}
}
CORBA::Boolean
-CORBA_Request::poll_response (CORBA::Environment &)
+CORBA_Request::poll_response (TAO_ENV_SINGLE_ARG_DECL_NOT_USED)
{
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
ace_mon,
@@ -376,8 +376,8 @@ CORBA_Request::poll_response (CORBA::Environment &)
void
CORBA_Request::handle_response (TAO_InputCDR &incoming,
- CORBA::ULong reply_status,
- CORBA::Environment &ACE_TRY_ENV)
+ CORBA::ULong reply_status
+ TAO_ENV_ARG_DECL)
{
// If this request was created by a gateway, then result_
// and/or args_ are shared by a CORBA::ServerRequest, whose
@@ -390,15 +390,15 @@ CORBA_Request::handle_response (TAO_InputCDR &incoming,
case TAO_PLUGGABLE_MESSAGE_NO_EXCEPTION:
if (this->result_ != 0)
{
- this->result_->value ()->_tao_decode (incoming,
- ACE_TRY_ENV);
+ this->result_->value ()->_tao_decode (incoming
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
}
this->args_->_tao_incoming_cdr (incoming,
CORBA::ARG_OUT | CORBA::ARG_INOUT,
- this->lazy_evaluation_,
- ACE_TRY_ENV);
+ this->lazy_evaluation_
+ TAO_ENV_ARG_PARAMETER);
ACE_CHECK;
{