summaryrefslogtreecommitdiff
path: root/TAO/tao/Muxed_TMS.cpp
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2003-04-10 15:40:11 +0000
committerbala <balanatarajan@users.noreply.github.com>2003-04-10 15:40:11 +0000
commit673b4792f6190e45cc70f1b6bb9722221df343bc (patch)
treeb15927fa8a27e7c84b7a8c8e39a9187a25ad3151 /TAO/tao/Muxed_TMS.cpp
parentb9dc8a6d0a3d38bd54306a1626cf3a88877d95b8 (diff)
downloadATCD-673b4792f6190e45cc70f1b6bb9722221df343bc.tar.gz
ChangeLogTag: Thu Apr 10 10:30x:33 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Muxed_TMS.cpp')
-rw-r--r--TAO/tao/Muxed_TMS.cpp31
1 files changed, 17 insertions, 14 deletions
diff --git a/TAO/tao/Muxed_TMS.cpp b/TAO/tao/Muxed_TMS.cpp
index f25931a9fef..98baffc0a21 100644
--- a/TAO/tao/Muxed_TMS.cpp
+++ b/TAO/tao/Muxed_TMS.cpp
@@ -14,15 +14,18 @@ ACE_RCSID(tao, Muxed_TMS, "$Id$")
TAO_Muxed_TMS::TAO_Muxed_TMS (TAO_Transport *transport)
- : TAO_Transport_Mux_Strategy (transport),
- request_id_generator_ (0),
- orb_core_ (transport->orb_core ()),
- dispatcher_table_ (TAO_RD_TABLE_SIZE)
+ : TAO_Transport_Mux_Strategy (transport)
+ , request_id_generator_ (0)
+ , orb_core_ (transport->orb_core ())
+ , dispatcher_table_ (this->orb_core_->client_factory ()->reply_dispatcher_table_size ())
{
+ this->lock_ =
+ this->orb_core_->client_factory ()->create_transport_mux_strategy_lock ();
}
TAO_Muxed_TMS::~TAO_Muxed_TMS (void)
{
+ delete this->lock_;
}
// Generate and return an unique request id for the current
@@ -31,8 +34,8 @@ CORBA::ULong
TAO_Muxed_TMS::request_id (void)
{
// @@ What is a good error return value?
- ACE_GUARD_RETURN (TAO_SYNCH_RECURSIVE_MUTEX, ace_mon,
- this->lock_, 0);
+ ACE_GUARD_RETURN (ACE_Lock, ace_mon,
+ *this->lock_, 0);
++this->request_id_generator_;
@@ -63,9 +66,9 @@ int
TAO_Muxed_TMS::bind_dispatcher (CORBA::ULong request_id,
TAO_Reply_Dispatcher *rd)
{
- ACE_GUARD_RETURN (TAO_SYNCH_RECURSIVE_MUTEX,
+ ACE_GUARD_RETURN (ACE_Lock,
ace_mon,
- this->lock_,
+ *this->lock_,
-1);
int result =
@@ -88,9 +91,9 @@ TAO_Muxed_TMS::bind_dispatcher (CORBA::ULong request_id,
int
TAO_Muxed_TMS::unbind_dispatcher (CORBA::ULong request_id)
{
- ACE_GUARD_RETURN (TAO_SYNCH_RECURSIVE_MUTEX,
+ ACE_GUARD_RETURN (ACE_Lock,
ace_mon,
- this->lock_,
+ *this->lock_,
-1);
TAO_Reply_Dispatcher *rd = 0;
@@ -107,9 +110,9 @@ TAO_Muxed_TMS::dispatch_reply (TAO_Pluggable_Reply_Params &params)
// Grab the reply dispatcher for this id.
{
- ACE_GUARD_RETURN (TAO_SYNCH_RECURSIVE_MUTEX,
+ ACE_GUARD_RETURN (ACE_Lock,
ace_mon,
- this->lock_,
+ *this->lock_,
-1);
result =
@@ -190,9 +193,9 @@ TAO_Muxed_TMS::idle_after_reply (void)
void
TAO_Muxed_TMS::connection_closed (void)
{
- ACE_GUARD (TAO_SYNCH_RECURSIVE_MUTEX,
+ ACE_GUARD (ACE_Lock,
ace_mon,
- this->lock_);
+ *this->lock_);
REQUEST_DISPATCHER_TABLE::ITERATOR end =
this->dispatcher_table_.end ();