OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Functions | Variables
mpool_base_tree.c File Reference

Description of the Registration Cache framework. More...

`#include "ompi_config.h"`
`#include "opal/mca/mca.h"`
`#include "orte/util/show_help.h"`
`#include "orte/util/name_fns.h"`
`#include "orte/util/proc_info.h"`
`#include "orte/runtime/orte_globals.h"`
`#include "ompi/runtime/params.h"`
`#include "ompi/class/ompi_free_list.h"`
`#include "ompi/class/ompi_rb_tree.h"`
`#include "mpool_base_tree.h"`

## Functions
static int | condition (void *value)
static void | action (void *key, void *value)
| OBJ_CLASS_INSTANCE (mca_mpool_base_tree_item_t, ompi_free_list_item_t, NULL, NULL)
int | mca_mpool_base_tree_node_compare (void *key1, void *key2)
| Function for the red black tree to compare 2 keys. More...
int | mca_mpool_base_tree_init (void)
int | mca_mpool_base_tree_insert (mca_mpool_base_tree_item_t *item)
int | mca_mpool_base_tree_delete (mca_mpool_base_tree_item_t *item)
mca_mpool_base_tree_item_t * | mca_mpool_base_tree_find (void *base)
| find the item in the rb tree
mca_mpool_base_tree_item_t * | mca_mpool_base_tree_item_get (void)
void | mca_mpool_base_tree_item_put (mca_mpool_base_tree_item_t *item)
void | mca_mpool_base_tree_print (void)

## Variables
static int | num_leaks = 0
static char * | leak_msg = NULL
ompi_rb_tree_t | mca_mpool_base_tree
ompi_free_list_t | mca_mpool_base_tree_item_free_list
static opal_mutex_t | tree_lock

## Detailed Description

Description of the Registration Cache framework.

## Function Documentation

int mca_mpool_base_tree_node_compare | ( | void * | key1,
|  | void * | key2
| ) |  |

Function for the red black tree to compare 2 keys.

Parameters

  key1 | a pointer to the 1st key
  key2 | a pointer to the second key

Return values

  -1 | if key1 is below key2
  1 | if key 1 is above key2
  0 | if the keys are the same