alloc_cache Struct Reference

Structure that provides allocation. More...

#include <alloc.h>


Data Fields

lock_quick_t lock
 lock, only used for the super.
struct alloc_cachesuper
 global allocator above this one.
alloc_special_tquar
 singly linked lists of special type.
size_t num_quar
 number of items in quarantine.
int thread_num
 thread number for id creation
uint64_t next_id
 next id number to pass out
uint64_t last_id
 last id number possible
void(* cleanup )(void *)
 what function to call to cleanup when last id is reached
void * cleanup_arg
 user arg for cleanup
size_t max_reg_blocks
 how many regional blocks to keep back max
size_t num_reg_blocks
 how many regional blocks are kept now
struct regionalreg_list
 linked list of regional blocks, using regional->next


Detailed Description

Structure that provides allocation.

Use one per thread. The one on top has a NULL super pointer.


Field Documentation

lock_quick_t alloc_cache::lock

singly linked lists of special type.

These are free for use.

Referenced by alloc_clear(), alloc_get_mem(), alloc_special_obtain(), alloc_special_release(), prealloc(), and pushintosuper().


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

Generated on Mon Nov 16 11:49:47 2009 for unbound by  doxygen 1.5.9