root/oshmem/mca/spml/base/spml_base_getreq.c

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

DEFINITIONS

This source file includes following definitions.
  1. mca_spml_base_get_request_construct
  2. mca_spml_base_get_request_destruct

   1 /*
   2  * Copyright (c) 2013      Mellanox Technologies, Inc.
   3  *                         All rights reserved.
   4  * $COPYRIGHT$
   5  *
   6  * Additional copyrights may follow
   7  *
   8  * $HEADER$
   9  */
  10 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
  11 
  12 #include "oshmem_config.h"
  13 #include "oshmem/types.h"
  14 #include "oshmem/mca/spml/spml.h"
  15 #include "oshmem/mca/spml/base/spml_base_getreq.h"
  16 
  17 static void mca_spml_base_get_request_construct(mca_spml_base_get_request_t*);
  18 static void mca_spml_base_get_request_destruct(mca_spml_base_get_request_t*);
  19 
  20 OBJ_CLASS_INSTANCE( mca_spml_base_get_request_t,
  21                    mca_spml_base_request_t,
  22                    mca_spml_base_get_request_construct,
  23                    mca_spml_base_get_request_destruct);
  24 
  25 static void mca_spml_base_get_request_construct(mca_spml_base_get_request_t* request)
  26 {
  27     /* no need to reinit for every get -- never changes */
  28     request->req_base.req_type = MCA_SPML_REQUEST_GET;
  29     OBJ_CONSTRUCT(&request->req_base.req_convertor, opal_convertor_t);
  30 }
  31 
  32 static void mca_spml_base_get_request_destruct(mca_spml_base_get_request_t* request)
  33 {
  34     /* For each request the convertor get cleaned after each message
  35      * (in the base _FINI macro). Therefore, as the convertor is a static object
  36      * we don't have to call OBJ_DESTRUCT here.
  37      */
  38 }
  39 

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