summaryrefslogtreecommitdiff
path: root/TAO/tao/default_resource.cpp
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-02-25 16:21:43 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-02-25 16:21:43 +0000
commit24d62f01dd8a2a7b92c5c788cd9cce151b918e9d (patch)
tree0dbd6b73a79d43a4fb07c2b71ccc193db100d941 /TAO/tao/default_resource.cpp
parent8864a0ebab0aab977614f9c8ee1e275c535c188a (diff)
downloadATCD-24d62f01dd8a2a7b92c5c788cd9cce151b918e9d.tar.gz
ChangeLogTag: Sun Feb 25 10:13:58 2001 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/default_resource.cpp')
-rw-r--r--TAO/tao/default_resource.cpp43
1 files changed, 42 insertions, 1 deletions
diff --git a/TAO/tao/default_resource.cpp b/TAO/tao/default_resource.cpp
index eb39187d3ba..8c9b10e0279 100644
--- a/TAO/tao/default_resource.cpp
+++ b/TAO/tao/default_resource.cpp
@@ -89,6 +89,7 @@ TAO_Default_Resource_Factory::init (int argc, char **argv)
}
}
+
for (curarg = 0; curarg < argc; curarg++)
if (ACE_OS::strcasecmp (argv[curarg],
"-ORBResources") == 0)
@@ -194,6 +195,22 @@ TAO_Default_Resource_Factory::init (int argc, char **argv)
}
}
else if (ACE_OS::strcasecmp (argv[curarg],
+ "-ORBConnectionCacheLock") == 0)
+ {
+ curarg++;
+ if (curarg < argc)
+ {
+ char *name = argv[curarg];
+
+ if (ACE_OS::strcasecmp (name,
+ "thread") == 0)
+ this->cached_connection_lock_type_ = TAO_THREAD_LOCK;
+ else if (ACE_OS::strcasecmp (name,
+ "null") == 0)
+ this->cached_connection_lock_type_ = TAO_NULL_LOCK;
+ }
+ }
+ else if (ACE_OS::strcasecmp (argv[curarg],
"-ORBConnectionLock") == 0)
{
curarg++;
@@ -201,6 +218,30 @@ TAO_Default_Resource_Factory::init (int argc, char **argv)
{
char *name = argv[curarg];
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("TAO (%P|%t) This option has been deprecated \n")
+ ACE_TEXT ("using -ORBConnectionCacheLock instead ")));
+
+ if (ACE_OS::strcasecmp (name,
+ "thread") == 0)
+ this->cached_connection_lock_type_ = TAO_THREAD_LOCK;
+ else if (ACE_OS::strcasecmp (name,
+ "null") == 0)
+ this->cached_connection_lock_type_ = TAO_NULL_LOCK;
+ }
+ }
+ else if (ACE_OS::strcasecmp (argv[curarg],
+ "-ORBConnectorLock") == 0)
+ {
+ curarg++;
+ if (curarg < argc)
+ {
+ char *name = argv[curarg];
+
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("TAO (%P|%t) This option has been deprecated \n")
+ ACE_TEXT ("using -ORBConnectionCacheLock instead \n")));
+
if (ACE_OS::strcasecmp (name,
"thread") == 0)
this->cached_connection_lock_type_ = TAO_THREAD_LOCK;
@@ -609,7 +650,7 @@ TAO_Default_Resource_Factory::input_cdr_buffer_allocator (void)
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR,
0);
-
+
return allocator;
}