Motr
M0
|
#include <pool.h>
Data Fields | |
struct m0_be_pool_cfg | bpl_cfg |
struct m0_mutex | bpl_lock |
struct m0_tl | bpl_free |
struct m0_tl | bpl_used |
struct be_pool_queue_item * | bpl_q_items |
struct m0_tl | bpl_q_free |
struct m0_tl | bpl_q_pending |
BE pool is a collection of pre-allocated objects of a single type. User is responsible for the objects allocation and filling of BE pool using interface m0_be_pool_add(). m0_be_pool_get/put are used for obtaining and release a free object.
Macros M0_BE_POOL_DESCR_DEFINE and M0_BE_POOL_DEFINE hide structure m0_be_pool_descr and simplify interface of BE pool.
struct m0_be_pool_cfg bpl_cfg |
struct m0_tl bpl_free |
struct be_pool_queue_item* bpl_q_items |