ACE_Control_Block(3)

ACE_Control_Block3

This information is stored in memory allocated by the memory_pool.

Usage

#include <ace/Malloc.h>
class ACE_Control_Block
{
  public:
    ACE_NAME_NODE_PTR name_head_;
    ACE_MALLOC_HEADER_PTR freep_;
    char lock_name_[MAXNAMELEN];
    ACE_Malloc_Stats malloc_stats_;
        long align_[ACE_CONTROL_BLOCK_ALIGN_LONGS < 1 ? 1 : ACE_CONTROL_BLOCK_ALIGN_LONGS];
        
    ACE_Malloc_Header base_;
    void dump (void) const;
  private:
    inline ACE_UNIMPLEMENTED_FUNC (
        void operator= (const ACE_Control_Block &)
        );
};

Overview

This class should be local to class ACE_Malloc, but some older C++ compilers don't like nested classes in templates...

Public members

ACE_NAME_NODE_PTR name_head_;

Head of the linked list of Name Nodes.

ACE_MALLOC_HEADER_PTR freep_;

Current head of the freelist.

char lock_name_[MAXNAMELEN];

Name of lock thats ensures mutual exclusion.

ACE_Malloc_Stats malloc_stats_;
    long align_[ACE_CONTROL_BLOCK_ALIGN_LONGS < 1 ? 1 : ACE_CONTROL_BLOCK_ALIGN_LONGS];
    

Force alignment.

ACE_Malloc_Header base_;

Dummy node used to anchor the freelist. This needs to come last...

void dump (void) const;

Dump the state of the object.

Private members

inline ACE_UNIMPLEMENTED_FUNC (
    void operator= (const ACE_Control_Block &)
    );

Library

ace

Author

Doug Schmidt and Irfan Pyarali

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.