diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-10-23 15:50:39 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-10-23 15:50:39 +0000 |
commit | 72f46ed3ae40ee8671937d302d44d6d7b91c4f17 (patch) | |
tree | 0619c75b29586214c51846f197082f23a72f05f7 /ace/Malloc_T.cpp | |
parent | 2193e73c11ecce6c03f70da1a2a09658ef774e3a (diff) | |
download | ATCD-72f46ed3ae40ee8671937d302d44d6d7b91c4f17.tar.gz |
ChangeLogTag:Mon Oct 23 08:37:49 2000 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'ace/Malloc_T.cpp')
-rw-r--r-- | ace/Malloc_T.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ace/Malloc_T.cpp b/ace/Malloc_T.cpp index 27102d4e60f..e79d3b4f9d6 100644 --- a/ace/Malloc_T.cpp +++ b/ace/Malloc_T.cpp @@ -436,7 +436,7 @@ ACE_Malloc_T<ACE_MEM_POOL_2, ACE_LOCK, ACE_CB>::malloc (size_t nbytes) template <ACE_MEM_POOL_1, class ACE_LOCK, class ACE_CB> void * ACE_Malloc_T<ACE_MEM_POOL_2, ACE_LOCK, ACE_CB>::calloc (size_t nbytes, - char initial_value) + char initial_value) { ACE_TRACE ("ACE_Malloc_T<ACE_MEM_POOL_2, ACE_LOCK, ACE_CB>::calloc"); void *ptr = this->malloc (nbytes); @@ -447,6 +447,16 @@ ACE_Malloc_T<ACE_MEM_POOL_2, ACE_LOCK, ACE_CB>::calloc (size_t nbytes, return ptr; } +template <ACE_MEM_POOL_1, class ACE_LOCK, class ACE_CB> void * +ACE_Malloc_T<ACE_MEM_POOL_2, ACE_LOCK, ACE_CB>::calloc (size_t n_elem, + size_t elem_size, + char initial_value) +{ + ACE_TRACE ("ACE_Malloc_T<ACE_MEM_POOL_2, ACE_LOCK, ACE_CB>::calloc"); + + return this->calloc (n_elem * elem_size, initial_value); +} + // Put block AP in the free list (must be called with locks held!) template <ACE_MEM_POOL_1, class ACE_LOCK, class ACE_CB> void |