1
1

construct/destruct convertor when requests are

constructed and allocated to free lists

This commit was SVN r7791.
Этот коммит содержится в:
Jeff Squyres 2005-10-18 12:19:43 +00:00
родитель a459659a33
Коммит f9974f72e0
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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);
} }