Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines
nsRecyclingAllocator.h File Reference
#include "nscore.h"
#include "pratom.h"
#include "prlock.h"
#include "nsIRecyclingAllocator.h"
#include "nsIGenericFactory.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

protocol  NS_COM
 A string set that takes up minimal size when there are 0 or 1 strings in the set. More...
struct  NS_COM::Block
struct  NS_COM::BlockStoreNode
class  nsRecyclingAllocatorImpl

Defines

#define NS_DEFAULT_RECYCLE_TIMEOUT   10
#define NS_MAX_BLOCKS   24
#define NS_ALLOCATOR_OVERHEAD_BYTES   (sizeof(Block))
#define DATA(block)   ((void *)(((char *)block) + NS_ALLOCATOR_OVERHEAD_BYTES))
#define DATA_TO_BLOCK(data)   ((Block *)((char *)(data) - NS_ALLOCATOR_OVERHEAD_BYTES))

Class Documentation

struct NS_COM::Block

Definition at line 80 of file nsRecyclingAllocator.h.

Class Members
PRSize bytes

Define Documentation

#define DATA (   block)    ((void *)(((char *)block) + NS_ALLOCATOR_OVERHEAD_BYTES))

Definition at line 95 of file nsRecyclingAllocator.h.

#define DATA_TO_BLOCK (   data)    ((Block *)((char *)(data) - NS_ALLOCATOR_OVERHEAD_BYTES))

Definition at line 96 of file nsRecyclingAllocator.h.

#define NS_ALLOCATOR_OVERHEAD_BYTES   (sizeof(Block))

Definition at line 73 of file nsRecyclingAllocator.h.

Definition at line 71 of file nsRecyclingAllocator.h.

Definition at line 72 of file nsRecyclingAllocator.h.