summaryrefslogtreecommitdiff
path: root/ace/Malloc.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-08-31 21:11:07 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-08-31 21:11:07 +0000
commit2114ee6761627a098921cc959f6934d988a9e3d6 (patch)
tree3ace97605b27ad3ce849cb56a8d5f0e0321cd69c /ace/Malloc.h
parent7181663a53162bbc35f9737121361b3ac6c4d9b6 (diff)
downloadATCD-2114ee6761627a098921cc959f6934d988a9e3d6.tar.gz
ChangeLogTag:Tue Aug 31 16:05:14 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/Malloc.h')
-rw-r--r--ace/Malloc.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/ace/Malloc.h b/ace/Malloc.h
index 5e75cc28b64..4eb4dca0e4b 100644
--- a/ace/Malloc.h
+++ b/ace/Malloc.h
@@ -95,19 +95,17 @@ class ACE_Export ACE_Malloc_Header
// to keep track of each chunk of data when it's in the free
// list or in use.
public:
- class ACE_Malloc_Control_Block
- {
- public:
- ACE_MALLOC_HEADER_PTR next_block_;
- // Points to next block if on free list.
+ ACE_Malloc_Header (void);
- size_t size_;
- // Size of this block.
- } s_;
+ ACE_MALLOC_HEADER_PTR next_block_;
+ // Points to next block if on free list.
+
+ size_t size_;
+ // Size of this header control block.
#if (ACE_MALLOC_PADDING > 1)
#define ACE_MALLOC_PADDING_SIZE ((ACE_MALLOC_PADDING - \
- (sizeof (ACE_Malloc_Control_Block)) / sizeof (long)))
+ (sizeof (ACE_Malloc_Header)) / sizeof (long)))
long padding_[ACE_MALLOC_PADDING_SIZE < 1 : ACE_MALLOC_PADDING_SIZE];
#endif /* ACE_MALLOC_PADDING > 0 */