Commit fb03faab authored by Philip Carns's avatar Philip Carns

bug fix to bulk pool cleanup

- also add warning messages if things don't match up on shutdown
- fixes #48
parent 4796f0df
......@@ -124,8 +124,10 @@ int margo_bulk_pool_destroy(
hg_size_t i;
if(pool->size != pool->count)
return -1;
if(pool->count != pool->num_free)
{
fprintf(stderr, "WARNING: margo bulk pool buffers still in use at margo_bulk_pool_destroy()\n");
}
ABT_cond_free(&pool->cond);
ABT_mutex_free(&pool->mutex);
......
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