~ubuntu-branches/ubuntu/hardy/openmpi/hardy-updates

« back to all changes in this revision

Viewing changes to ompi/mca/bml/base/bml_base_endpoint.c

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2006-10-15 00:46:11 UTC
  • Revision ID: james.westby@ubuntu.com-20061015004611-uuhxnaxyjmuxfd5h
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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-2005 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$
 
13
 * 
 
14
 * Additional copyrights may follow
 
15
 * 
 
16
 * $HEADER$
 
17
 */
 
18
 
 
19
#include "ompi_config.h"
 
20
 
 
21
#include "opal/sys/atomic.h"
 
22
#include "ompi/mca/bml/bml.h"
 
23
#include "bml_base_endpoint.h"
 
24
#include "ompi/mca/pml/pml.h" 
 
25
 
 
26
 
 
27
 
 
28
static void mca_bml_base_endpoint_construct(mca_bml_base_endpoint_t* ep)
 
29
{
 
30
    ep->btl_rdma_offset = 0;
 
31
    ep->btl_max_send_size = 0;
 
32
    ep->btl_rdma_size = 0;
 
33
    ep->btl_rdma_align = 0;
 
34
 
 
35
    OBJ_CONSTRUCT(&ep->btl_eager, mca_bml_base_btl_array_t);
 
36
    OBJ_CONSTRUCT(&ep->btl_send,  mca_bml_base_btl_array_t);
 
37
    OBJ_CONSTRUCT(&ep->btl_rdma,  mca_bml_base_btl_array_t);
 
38
}
 
39
 
 
40
 
 
41
static void mca_bml_base_endpoint_destruct(mca_bml_base_endpoint_t* ep)
 
42
{
 
43
    OBJ_DESTRUCT(&ep->btl_eager);
 
44
    OBJ_DESTRUCT(&ep->btl_send);
 
45
    OBJ_DESTRUCT(&ep->btl_rdma);
 
46
}
 
47
 
 
48
 
 
49
OBJ_CLASS_INSTANCE(
 
50
    mca_bml_base_endpoint_t,
 
51
    opal_object_t,
 
52
    mca_bml_base_endpoint_construct, 
 
53
    mca_bml_base_endpoint_destruct 
 
54
);
 
55