1
1
openmpi/ompi/mca/ptl/gm/ptl_gm_proc.h
Jeff Squyres 42ec26e640 Update the copyright notices for IU and UTK.
This commit was SVN r7999.
2005-11-05 19:57:48 +00:00

58 строки
2.0 KiB
C

/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2004 The Ohio State University.
* All rights reserved.
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
/**
* @file
*/
#ifndef MCA_PTL_GM_PROC_H
#define MCA_PTL_GM_PROC_H
#include "opal/class/opal_object.h"
#include "orte/mca/ns/ns_types.h"
#include "ptl_gm.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern opal_class_t mca_ptl_gm_proc_t_class;
struct mca_ptl_gm_proc_t {
opal_list_item_t super; /**< allow proc to be placed on a list */
struct ompi_proc_t *proc_ompi; /**< pointer to corresponding orte_process_name_t */
struct mca_ptl_gm_addr_t *proc_addrs; /**< array of addresses published by peer */
opal_mutex_t proc_lock; /**< lock to protect against concurrent access to proc state */
size_t proc_peer_count;
size_t proc_addr_count;
struct mca_ptl_gm_peer_t **peer_arr;
orte_process_name_t proc_guid;
};
typedef struct mca_ptl_gm_proc_t mca_ptl_gm_proc_t;
mca_ptl_gm_proc_t *mca_ptl_gm_proc_create (mca_ptl_gm_module_t * ptl,
struct ompi_proc_t* orte_proc);
mca_ptl_gm_proc_t *mca_ptl_gm_proc_lookup (void *guid, size_t size);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif