Commit 4eecb3f8 authored by Philip Carns's avatar Philip Carns

add api hook to get max buffer size in poolset

parent 284c00de
......@@ -132,6 +132,17 @@ hg_return_t margo_bulk_poolset_create(
int margo_bulk_poolset_destroy(
margo_bulk_poolset_t poolset);
/**
* @brief Get maximum size supported by a pool set
*
* @param poolset Poolset
* @param max_size Maximum supported buffer size
*
*/
void margo_bulk_poolset_get_max(
margo_bulk_poolset_t poolset,
hg_size_t *max_size);
/**
* @brief Gets a bulk handle from the pool with the minimum size required to satisfy
* the provided size. May block until the pool has a bulk handle available.
......
......@@ -294,6 +294,14 @@ int margo_bulk_poolset_destroy(
return ret;
}
void margo_bulk_poolset_get_max(
margo_bulk_poolset_t poolset,
hg_size_t *max_size)
{
*max_size = poolset->pools[poolset->npools-1]->size;
return;
}
int margo_bulk_poolset_get(
margo_bulk_poolset_t poolset,
hg_size_t size,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment