diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-10-26 22:42:41 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-10-26 22:42:41 +0000 |
commit | 997479406012dab3e5e787d3a724bf5f2fd2b04c (patch) | |
tree | 2ef6e53f815be15b115475f9a6435f9c90560c8f /ace/Malloc_T.h | |
parent | d86f427ede3d90e8f579a52061449d39a611bd55 (diff) | |
download | ATCD-997479406012dab3e5e787d3a724bf5f2fd2b04c.tar.gz |
Yow
Diffstat (limited to 'ace/Malloc_T.h')
-rw-r--r-- | ace/Malloc_T.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/ace/Malloc_T.h b/ace/Malloc_T.h index 0b834444840..b2d2a596305 100644 --- a/ace/Malloc_T.h +++ b/ace/Malloc_T.h @@ -175,17 +175,31 @@ public: // extract out the name used for the underlying lock name (if // necessary). - ACE_Malloc (const ACE_MEM_POOL_OPTIONS &options, + ACE_Malloc (const MEMORY_POOL_OPTIONS &options, const char *pool_name, - const char *lock_name); + const char *lock_name) + : memory_pool_ (options, pool_name), + lock_ (lock_name) + { + ACE_TRACE ("ACE_Malloc<ACE_MEM_POOL_2, LOCK>::ACE_Malloc"); + this->open (); + } // Initialize ACE_Malloc. This constructor passes <pool_name> to // initialize the memory pool, and uses <lock_name> to automatically // extract out the name used for the underlying lock name (if // necessary). In addition, <options> is passed through to // initialize the underlying memory pool. - ACE_Malloc (const ACE_MEM_POOL_OPTIONS &options, - const char *pool_name = 0); + ACE_Malloc (const MEMORY_POOL_OPTIONS &options, + const char *pool_name = 0) + : memory_pool_ (options, pool_name), + lock_ (pool_name == 0 ? 0 : ACE::basename (pool_name, + ACE_DIRECTORY_SEPARATOR_CHAR)) + { + ACE_TRACE ("ACE_Malloc<ACE_MEM_POOL_2, LOCK>::ACE_Malloc"); + this->open (); + } + // Initialize ACE_Malloc. This constructor passes <pool_name> to // initialize the memory pool. In addition, <options> is passed // through to initialize the underlying memory pool. |