2004-06-24 23:28:30 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-06-24 23:28:30 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
2004-10-20 05:03:09 +04:00
|
|
|
#include "ompi_config.h"
|
2004-06-24 23:28:30 +04:00
|
|
|
#include <string.h>
|
2005-04-13 07:19:48 +04:00
|
|
|
#include "mca/pml/pml.h"
|
2004-06-24 23:28:30 +04:00
|
|
|
#include "mca/pml/base/pml_base_sendreq.h"
|
|
|
|
|
|
|
|
static void mca_pml_base_send_request_construct(mca_pml_base_send_request_t* req);
|
|
|
|
static void mca_pml_base_send_request_destruct(mca_pml_base_send_request_t* req);
|
|
|
|
|
|
|
|
|
2005-07-03 20:06:07 +04:00
|
|
|
opal_class_t mca_pml_base_send_request_t_class = {
|
2004-06-24 23:28:30 +04:00
|
|
|
"mca_pml_base_send_request_t",
|
|
|
|
OBJ_CLASS(mca_pml_base_request_t),
|
2005-07-03 20:06:07 +04:00
|
|
|
(opal_construct_t) mca_pml_base_send_request_construct,
|
|
|
|
(opal_destruct_t) mca_pml_base_send_request_destruct
|
2004-06-24 23:28:30 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static void mca_pml_base_send_request_construct(mca_pml_base_send_request_t* request)
|
|
|
|
{
|
|
|
|
/* no need to reinit for every send -- never changes */
|
2004-07-15 22:08:20 +04:00
|
|
|
request->req_base.req_type = MCA_PML_REQUEST_SEND;
|
2004-06-24 23:28:30 +04:00
|
|
|
OBJ_CONSTRUCT(&request->req_convertor, ompi_convertor_t);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void mca_pml_base_send_request_destruct(mca_pml_base_send_request_t* req)
|
|
|
|
{
|
2005-10-28 07:26:36 +04:00
|
|
|
/* For each request the convertor get cleaned after each message
|
|
|
|
* (in the base _FINI macro). Therefore, as the convertor is a static object
|
|
|
|
* we don't have to call OBJ_DESTRUCT here.
|
|
|
|
*/
|
2004-06-24 23:28:30 +04:00
|
|
|
}
|
|
|
|
|