2015-06-23 20:59:57 -07:00
|
|
|
#include "btl_template_frag.h"
|
2005-06-30 05:50:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-06-23 20:59:57 -07:00
|
|
|
static void mca_btl_template_frag_eager_constructor(mca_btl_template_frag_t* frag)
|
|
|
|
{
|
2005-06-30 05:50:55 +00:00
|
|
|
frag->registration = NULL;
|
2015-06-23 20:59:57 -07:00
|
|
|
frag->size = mca_btl_template_module.super.btl_eager_limit;
|
2005-06-30 05:50:55 +00:00
|
|
|
}
|
|
|
|
|
2015-06-23 20:59:57 -07:00
|
|
|
static void mca_btl_template_frag_max_constructor(mca_btl_template_frag_t* frag)
|
|
|
|
{
|
2005-06-30 05:50:55 +00:00
|
|
|
frag->registration = NULL;
|
2015-06-23 20:59:57 -07:00
|
|
|
frag->size = mca_btl_template_module.super.btl_max_send_size;
|
2005-06-30 05:50:55 +00:00
|
|
|
}
|
|
|
|
|
2015-06-23 20:59:57 -07:00
|
|
|
static void mca_btl_template_frag_user_constructor(mca_btl_template_frag_t* frag)
|
|
|
|
{
|
|
|
|
frag->size = 0;
|
2007-01-09 10:29:20 +00:00
|
|
|
frag->registration = NULL;
|
2005-06-30 05:50:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
2015-06-23 20:59:57 -07:00
|
|
|
mca_btl_template_frag_t,
|
|
|
|
mca_btl_base_descriptor_t,
|
|
|
|
NULL,
|
|
|
|
NULL);
|
2005-06-30 05:50:55 +00:00
|
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
2015-06-23 20:59:57 -07:00
|
|
|
mca_btl_template_frag_eager_t,
|
|
|
|
mca_btl_base_descriptor_t,
|
|
|
|
mca_btl_template_frag_eager_constructor,
|
|
|
|
NULL);
|
2005-06-30 05:50:55 +00:00
|
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
2015-06-23 20:59:57 -07:00
|
|
|
mca_btl_template_frag_max_t,
|
|
|
|
mca_btl_base_descriptor_t,
|
|
|
|
mca_btl_template_frag_max_constructor,
|
|
|
|
NULL);
|
2005-06-30 05:50:55 +00:00
|
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
2015-06-23 20:59:57 -07:00
|
|
|
mca_btl_template_frag_user_t,
|
|
|
|
mca_btl_base_descriptor_t,
|
|
|
|
mca_btl_template_frag_user_constructor,
|
|
|
|
NULL);
|
2005-06-30 05:50:55 +00:00
|
|
|
|