mp_allocated_t Struct Reference


Data Fields

mp_chunk_tin_chunk
union {
   mp_allocated_t *   next_free
   char   mem [1]
   ALIGNMENT_TYPE   _dummy
u

Detailed Description

Holds a single allocated item, allocated as part of a chunk.

Field Documentation

The chunk that this item is allocated in. This adds overhead to each allocated item, thus making this implementation inappropriate for very small items.

Referenced by mp_pool_get(), and mp_pool_release().

If this item is free, the next item on the free list.

Referenced by mp_pool_get(), and mp_pool_release().

If this item is not free, the actual memory contents of this item. (Not actual size.)

ALIGNMENT_TYPE mp_allocated_t::_dummy

An extra element to the union to insure correct alignment.


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:14 2010 for tor by  doxygen 1.5.6