construct/destruct convertor when requests are
constructed and allocated to free lists This commit was SVN r7791.
Этот коммит содержится в:
родитель
a459659a33
Коммит
f9974f72e0
@ -95,10 +95,12 @@ static void mca_pml_ob1_recv_request_construct(mca_pml_ob1_recv_request_t* reque
|
|||||||
request->req_recv.req_base.req_ompi.req_fini = mca_pml_ob1_recv_request_fini;
|
request->req_recv.req_base.req_ompi.req_fini = mca_pml_ob1_recv_request_fini;
|
||||||
request->req_recv.req_base.req_ompi.req_free = mca_pml_ob1_recv_request_free;
|
request->req_recv.req_base.req_ompi.req_free = mca_pml_ob1_recv_request_free;
|
||||||
request->req_recv.req_base.req_ompi.req_cancel = mca_pml_ob1_recv_request_cancel;
|
request->req_recv.req_base.req_ompi.req_cancel = mca_pml_ob1_recv_request_cancel;
|
||||||
|
OBJ_CONSTRUCT(&request->req_recv.req_convertor, ompi_convertor_t);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mca_pml_ob1_recv_request_destruct(mca_pml_ob1_recv_request_t* request)
|
static void mca_pml_ob1_recv_request_destruct(mca_pml_ob1_recv_request_t* request)
|
||||||
{
|
{
|
||||||
|
OBJ_DESTRUCT(&request->req_recv.req_convertor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,10 +77,12 @@ static void mca_pml_ob1_send_request_construct(mca_pml_ob1_send_request_t* req)
|
|||||||
req->req_send.req_base.req_ompi.req_fini = mca_pml_ob1_send_request_fini;
|
req->req_send.req_base.req_ompi.req_fini = mca_pml_ob1_send_request_fini;
|
||||||
req->req_send.req_base.req_ompi.req_free = mca_pml_ob1_send_request_free;
|
req->req_send.req_base.req_ompi.req_free = mca_pml_ob1_send_request_free;
|
||||||
req->req_send.req_base.req_ompi.req_cancel = mca_pml_ob1_send_request_cancel;
|
req->req_send.req_base.req_ompi.req_cancel = mca_pml_ob1_send_request_cancel;
|
||||||
|
OBJ_CONSTRUCT(&req->req_send.req_convertor, ompi_request_t);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mca_pml_ob1_send_request_destruct(mca_pml_ob1_send_request_t* req)
|
static void mca_pml_ob1_send_request_destruct(mca_pml_ob1_send_request_t* req)
|
||||||
{
|
{
|
||||||
|
OBJ_DESTRUCT(&req->req_send.req_convertor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user