root/ompi/mca/pml/base/pml_base_sendreq.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. mca_pml_base_send_request_construct
  2. mca_pml_base_send_request_destruct

   1 /*
   2  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2007 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * $COPYRIGHT$
  13  *
  14  * Additional copyrights may follow
  15  *
  16  * $HEADER$
  17  */
  18 #include "ompi_config.h"
  19 #include <string.h>
  20 #include "ompi/mca/pml/pml.h"
  21 #include "ompi/mca/pml/base/pml_base_sendreq.h"
  22 
  23 static void mca_pml_base_send_request_construct(mca_pml_base_send_request_t* req);
  24 static void mca_pml_base_send_request_destruct(mca_pml_base_send_request_t* req);
  25 
  26 
  27 OBJ_CLASS_INSTANCE(
  28     mca_pml_base_send_request_t,
  29     mca_pml_base_request_t,
  30     mca_pml_base_send_request_construct,
  31     mca_pml_base_send_request_destruct
  32 );
  33 
  34 
  35 static void mca_pml_base_send_request_construct(mca_pml_base_send_request_t* request)
  36 {
  37     /* no need to reinit for every send -- never changes */
  38     request->req_base.req_type = MCA_PML_REQUEST_SEND;
  39     OBJ_CONSTRUCT(&request->req_base.req_convertor, opal_convertor_t);
  40 }
  41 
  42 static void mca_pml_base_send_request_destruct(mca_pml_base_send_request_t* req)
  43 {
  44     /* For each request the convertor get cleaned after each message
  45      * (in the base _FINI macro). Therefore, as the convertor is a static object
  46      * we don't have to call OBJ_DESTRUCT here.
  47      */
  48 }
  49 

/* [<][>][^][v][top][bottom][index][help] */