design_pattern_for_c
V 1.00
|
MemoryPool class member definition, detail is defined in C file. More...
#include <memorypool.h>
Data Fields | |
malloc_data_t * | head |
malloc_data_t * | tail |
size_t | max_size |
size_t | max_cnt |
size_t | cur_cnt |
size_t | slide_bit |
keep slide bit size related to max_size, to search buffer fast More... | |
uint8_t * | buf |
list of buffer for user + list of malloc_data_t More... | |
uint8_t * | user_buf |
list of buffer for user More... | |
pthread_mutex_t * | lock |
mutex More... | |
MemoryPool class member definition, detail is defined in C file.
definition of malloc manage data, to search data fast, add buffer_unused list and unfull list for check buffer_unused (because buffer_unused will over
/*
Definition at line 45 of file memorypool.c.
uint8_t* buf |
list of buffer for user + list of malloc_data_t
Definition at line 52 of file memorypool.c.
size_t cur_cnt |
Definition at line 50 of file memorypool.c.
malloc_data_t* head |
Definition at line 46 of file memorypool.c.
pthread_mutex_t* lock |
mutex
Definition at line 54 of file memorypool.c.
size_t max_cnt |
Definition at line 49 of file memorypool.c.
size_t max_size |
Definition at line 48 of file memorypool.c.
size_t slide_bit |
keep slide bit size related to max_size, to search buffer fast
Definition at line 51 of file memorypool.c.
malloc_data_t* tail |
Definition at line 47 of file memorypool.c.
uint8_t* user_buf |
list of buffer for user
Definition at line 53 of file memorypool.c.