mempool:add a private pointer to stroe private data

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2022-11-23 22:19:21 +08:00 committed by Xiang Xiao
parent e7d02ffac2
commit f24fb2b10a

View File

@ -68,6 +68,7 @@ struct mempool_s
size_t interruptsize; /* The initialize size in interrupt mempool */
size_t expandsize; /* The size of expand block every time for mempool */
bool wait; /* The flag of need to wait when mempool is empty */
FAR void *priv; /* This pointer is used to store the user's private data */
mempool_alloc_t alloc; /* The alloc function for mempool */
mempool_free_t free; /* The free function for mempool */