add comment
parent
59fbe9214a
commit
e879393c88
3
HISTORY
3
HISTORY
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
Version 1.16 2015-06-25
|
Version 1.16 2015-07-01
|
||||||
* fast_mblock add fast_mblock_delay_free
|
* fast_mblock add fast_mblock_delay_free
|
||||||
|
* add fast_mpool.h and fast_mpool.c
|
||||||
|
|
||||||
Version 1.15 2015-06-16
|
Version 1.15 2015-06-16
|
||||||
* fast_mblock.c support none lock
|
* fast_mblock.c support none lock
|
||||||
|
|
|
||||||
|
|
@ -67,10 +67,9 @@ parameters:
|
||||||
void fast_mpool_destroy(struct fast_mpool_man *mpool);
|
void fast_mpool_destroy(struct fast_mpool_man *mpool);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
free a node (put a node to the mpool)
|
reset for recycle use
|
||||||
parameters:
|
parameters:
|
||||||
mpool: the mpool pointer
|
mpool: the mpool pointer
|
||||||
pNode: the node to free
|
|
||||||
*/
|
*/
|
||||||
void fast_mpool_reset(struct fast_mpool_man *mpool);
|
void fast_mpool_reset(struct fast_mpool_man *mpool);
|
||||||
|
|
||||||
|
|
@ -78,6 +77,7 @@ void fast_mpool_reset(struct fast_mpool_man *mpool);
|
||||||
alloc a node from the mpool
|
alloc a node from the mpool
|
||||||
parameters:
|
parameters:
|
||||||
mpool: the mpool pointer
|
mpool: the mpool pointer
|
||||||
|
size: alloc bytes
|
||||||
return the alloced ptr, return NULL if fail
|
return the alloced ptr, return NULL if fail
|
||||||
*/
|
*/
|
||||||
void *fast_mpool_alloc(struct fast_mpool_man *mpool, const int size);
|
void *fast_mpool_alloc(struct fast_mpool_man *mpool, const int size);
|
||||||
|
|
@ -86,6 +86,7 @@ void *fast_mpool_alloc(struct fast_mpool_man *mpool, const int size);
|
||||||
get stats
|
get stats
|
||||||
parameters:
|
parameters:
|
||||||
mpool: the mpool pointer
|
mpool: the mpool pointer
|
||||||
|
stats: return the stats
|
||||||
*/
|
*/
|
||||||
void fast_mpool_stats(struct fast_mpool_man *mpool, struct fast_mpool_stats *stats);
|
void fast_mpool_stats(struct fast_mpool_man *mpool, struct fast_mpool_stats *stats);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue