2005-05-04 21:08:08 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* 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.
|
2005-05-04 21:08:08 +04:00
|
|
|
* 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$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MCA_PML_BASE_PTL_
|
|
|
|
#define _MCA_PML_BASE_PTL_
|
|
|
|
|
|
|
|
#include "mca/pml/pml.h"
|
|
|
|
#include "mca/ptl/ptl.h"
|
2005-07-04 02:45:48 +04:00
|
|
|
#include "opal/threads/condition.h"
|
2005-05-04 21:08:08 +04:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2005-11-22 06:44:18 +03:00
|
|
|
struct mca_pml_uniq_ptl_t {
|
2005-07-03 20:22:16 +04:00
|
|
|
opal_list_t ptl_cache; /**< cache of send requests */
|
2005-05-04 21:08:08 +04:00
|
|
|
size_t ptl_cache_size; /**< maximum size of cache */
|
|
|
|
size_t ptl_cache_alloc; /**< current number of allocated items */
|
2005-07-04 02:45:48 +04:00
|
|
|
opal_mutex_t ptl_cache_lock; /**< lock for queue access */
|
2005-05-04 21:08:08 +04:00
|
|
|
struct mca_ptl_base_module_t* ptl; /**< back pointer to ptl */
|
|
|
|
};
|
2005-11-22 06:44:18 +03:00
|
|
|
typedef struct mca_pml_uniq_ptl_t mca_pml_uniq_ptl_t;
|
|
|
|
typedef struct mca_pml_uniq_ptl_t mca_pml_base_ptl_t;
|
2005-05-04 21:08:08 +04:00
|
|
|
|
2005-11-22 06:44:18 +03:00
|
|
|
OBJ_CLASS_DECLARATION(mca_pml_uniq_ptl_t);
|
2005-05-04 21:08:08 +04:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|