summaryrefslogtreecommitdiff
path: root/ace/Naming_Context.cpp
diff options
context:
space:
mode:
authordoccvs <doccvs@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-13 01:21:57 +0000
committerdoccvs <doccvs@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-13 01:21:57 +0000
commit7160e530fc43393be47a655ce100e1fc125dc6d9 (patch)
tree05479c9b98febc8a45460fec03442753e5a81f0e /ace/Naming_Context.cpp
parent6aeced075745800ab99d5386488da57b1afa9b67 (diff)
downloadATCD-7160e530fc43393be47a655ce100e1fc125dc6d9.tar.gz
ChangeLogTag: Thu Oct 12 18:19:46 2000 Priyanka Gontla <pgontla@ece.uci.edu>
Diffstat (limited to 'ace/Naming_Context.cpp')
-rw-r--r--ace/Naming_Context.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/ace/Naming_Context.cpp b/ace/Naming_Context.cpp
index c5fc634276b..2f020757cd8 100644
--- a/ace/Naming_Context.cpp
+++ b/ace/Naming_Context.cpp
@@ -20,6 +20,13 @@ typedef ACE_Local_Name_Space <ACE_LITE_MMAP_MEMORY_POOL, ACE_RW_Process_Mutex> L
// Server client.
ACE_FACTORY_DEFINE (ACE, ACE_Naming_Context)
+ACE_STATIC_SVC_DEFINE (ACE_Naming_Context,
+ ACE_TEXT ("ACE_Naming_Context"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ACE_Naming_Context),
+ ACE_Service_Type::DELETE_THIS |
+ ACE_Service_Type::DELETE_OBJ,
+ 0)
// The ACE_Naming_Context static service object is now defined
// by the ACE_Object_Manager, in Object_Manager.cpp.
@@ -419,7 +426,7 @@ ACE_Name_Options::ACE_Name_Options (void)
size_t pathsize = (MAXPATHLEN + 1) * sizeof (ACE_TCHAR);
this->namespace_dir_ = ACE_static_cast (ACE_TCHAR *, ACE_OS::malloc (pathsize));
- if (ACE::get_temp_dir (this->namespace_dir_, MAXPATHLEN) == -1)
+ if (ACE_Lib_Find::get_temp_dir (this->namespace_dir_, MAXPATHLEN) == -1)
{
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("Temporary path too long, ")