diff options
author | bala <balanatarajan@users.noreply.github.com> | 2000-09-29 15:48:12 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2000-09-29 15:48:12 +0000 |
commit | 1cfe7c3afc11b96a8b1a790ed3e838d003983f18 (patch) | |
tree | 816573bae9064a1269359873fc183b657292a2bd /TAO/tao/default_client.cpp | |
parent | b4c28265366b386414c13a342617e0f015e3b6ce (diff) | |
download | ATCD-1cfe7c3afc11b96a8b1a790ed3e838d003983f18.tar.gz |
ChangeLogTag: Fri Sep 29 10:14:52 2000 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/default_client.cpp')
-rw-r--r-- | TAO/tao/default_client.cpp | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/TAO/tao/default_client.cpp b/TAO/tao/default_client.cpp index e74d39d8fa8..e0e71f168c7 100644 --- a/TAO/tao/default_client.cpp +++ b/TAO/tao/default_client.cpp @@ -132,7 +132,7 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, char ** argv) if (curarg < argc) { char *name = argv[curarg]; - + if (ACE_OS::strcasecmp (name, "thread") == 0) this->cached_connector_lock_type_ = TAO_THREAD_LOCK; @@ -202,12 +202,12 @@ TAO_Default_Client_Strategy_Factory::create_wait_strategy (TAO_Transport *transp else { // = Leader follower model. - + ACE_NEW_RETURN (ws, TAO_Wait_On_Leader_Follower (transport), 0); } - + return ws; } @@ -228,6 +228,23 @@ TAO_Default_Client_Strategy_Factory::create_cached_connector_lock (void) return the_lock; } +ACE_Lock * +TAO_Default_Client_Strategy_Factory::create_ft_service_retention_id_lock (void) +{ + ACE_Lock *the_lock = 0; + + if (this->cached_connector_lock_type_ == TAO_NULL_LOCK) + ACE_NEW_RETURN (the_lock, + ACE_Lock_Adapter<ACE_SYNCH_NULL_MUTEX>, + 0); + else + ACE_NEW_RETURN (the_lock, + ACE_Lock_Adapter<ACE_SYNCH_MUTEX>, + 0); + + return the_lock; +} + // **************************************************************** ACE_STATIC_SVC_DEFINE (TAO_Default_Client_Strategy_Factory, |