root/ompi/mca/bml/base/bml_base_endpoint.c

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

DEFINITIONS

This source file includes following definitions.
  1. mca_bml_base_endpoint_construct
  2. mca_bml_base_endpoint_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-2008 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2006 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * Copyright (c) 2008      Cisco Systems, Inc.  All rights reserved.
  13  * $COPYRIGHT$
  14  *
  15  * Additional copyrights may follow
  16  *
  17  * $HEADER$
  18  */
  19 
  20 #include "ompi_config.h"
  21 
  22 #include "opal/sys/atomic.h"
  23 #include "ompi/mca/bml/bml.h"
  24 
  25 
  26 
  27 static void mca_bml_base_endpoint_construct(mca_bml_base_endpoint_t* ep)
  28 {
  29     ep->btl_pipeline_send_length = 0;
  30     ep->btl_send_limit = 0;
  31 
  32     OBJ_CONSTRUCT(&ep->btl_eager, mca_bml_base_btl_array_t);
  33     OBJ_CONSTRUCT(&ep->btl_send,  mca_bml_base_btl_array_t);
  34     OBJ_CONSTRUCT(&ep->btl_rdma,  mca_bml_base_btl_array_t);
  35 }
  36 
  37 
  38 static void mca_bml_base_endpoint_destruct(mca_bml_base_endpoint_t* ep)
  39 {
  40     OBJ_DESTRUCT(&ep->btl_eager);
  41     OBJ_DESTRUCT(&ep->btl_send);
  42     OBJ_DESTRUCT(&ep->btl_rdma);
  43 }
  44 
  45 
  46 OBJ_CLASS_INSTANCE(
  47     mca_bml_base_endpoint_t,
  48     opal_object_t,
  49     mca_bml_base_endpoint_construct,
  50     mca_bml_base_endpoint_destruct
  51 );
  52 

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