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

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

DEFINITIONS

This source file includes following definitions.
  1. mca_pml_base_recv_request_construct
  2. mca_pml_base_recv_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 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
  19 
  20 #include "ompi_config.h"
  21 #include "ompi/types.h"
  22 #include "ompi/mca/pml/pml.h"
  23 #include "ompi/mca/pml/base/pml_base_recvreq.h"
  24 
  25 
  26 static void mca_pml_base_recv_request_construct(mca_pml_base_recv_request_t*);
  27 static void mca_pml_base_recv_request_destruct(mca_pml_base_recv_request_t*);
  28 
  29 
  30 OBJ_CLASS_INSTANCE(
  31     mca_pml_base_recv_request_t,
  32     mca_pml_base_request_t,
  33     mca_pml_base_recv_request_construct,
  34     mca_pml_base_recv_request_destruct
  35 );
  36 
  37 
  38 static void mca_pml_base_recv_request_construct(mca_pml_base_recv_request_t* request)
  39 {
  40     /* no need to reinit for every recv -- never changes */
  41     request->req_base.req_type = MCA_PML_REQUEST_RECV;
  42     OBJ_CONSTRUCT(&request->req_base.req_convertor, opal_convertor_t);
  43 }
  44 
  45 
  46 static void mca_pml_base_recv_request_destruct(mca_pml_base_recv_request_t* request)
  47 {
  48     /* For each request the convertor get cleaned after each message
  49      * (in the base _FINI macro). Therefore, as the convertor is a static object
  50      * we don't have to call OBJ_DESTRUCT here.
  51      */
  52 }
  53 

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