2005-05-09 19:37:10 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00: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-09 19:37:10 +00: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$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
|
|
|
|
#include "pml_teg_ptl.h"
|
|
|
|
|
|
|
|
|
2005-08-12 02:41:14 +00:00
|
|
|
static void mca_pml_base_ptl_construct(mca_pml_base_ptl_t* ptl)
|
2005-05-09 19:37:10 +00:00
|
|
|
{
|
2005-07-03 16:22:16 +00:00
|
|
|
OBJ_CONSTRUCT(&ptl->ptl_cache, opal_list_t);
|
2005-07-03 22:45:48 +00:00
|
|
|
OBJ_CONSTRUCT(&ptl->ptl_cache_lock, opal_mutex_t);
|
2005-05-09 19:37:10 +00:00
|
|
|
ptl->ptl = NULL;
|
|
|
|
ptl->ptl_cache_size = 0;
|
|
|
|
ptl->ptl_cache_alloc = 0;
|
|
|
|
}
|
|
|
|
|
2005-08-12 02:41:14 +00:00
|
|
|
static void mca_pml_base_ptl_destruct(mca_pml_base_ptl_t* ptl)
|
2005-05-09 19:37:10 +00:00
|
|
|
{
|
|
|
|
OBJ_DESTRUCT(&ptl->ptl_cache);
|
|
|
|
OBJ_DESTRUCT(&ptl->ptl_cache_lock);
|
|
|
|
}
|
|
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
2005-08-12 02:41:14 +00:00
|
|
|
mca_pml_base_ptl_t,
|
2005-07-03 16:22:16 +00:00
|
|
|
opal_list_t,
|
2005-08-12 02:41:14 +00:00
|
|
|
mca_pml_base_ptl_construct,
|
|
|
|
mca_pml_base_ptl_destruct
|
2005-05-09 19:37:10 +00:00
|
|
|
);
|
|
|
|
|