1
1
- Reformat

This commit was SVN r10814.
Этот коммит содержится в:
Rainer Keller 2006-07-14 19:55:14 +00:00
родитель 3b978e3985
Коммит 50b5791969
2 изменённых файлов: 20 добавлений и 19 удалений

Просмотреть файл

@ -43,10 +43,11 @@ enum {
typedef int orte_iof_base_tag_t; typedef int orte_iof_base_tag_t;
/* endpoint mode */ /* endpoint mode */
typedef enum { enum {
ORTE_IOF_SOURCE, ORTE_IOF_SOURCE = 0,
ORTE_IOF_SINK ORTE_IOF_SINK
} orte_iof_base_mode_t; };
typedef int orte_iof_base_mode_t;
/** /**

Просмотреть файл

@ -5,7 +5,7 @@
* Copyright (c) 2004-2005 The University of Tennessee and The University * Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights * of Tennessee Research Foundation. All rights
* reserved. * reserved.
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, * Copyright (c) 2004-2006 High Performance Computing Center Stuttgart,
* University of Stuttgart. All rights reserved. * University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
@ -33,6 +33,7 @@
int orte_soh_base_select(void) int orte_soh_base_select(void)
{ {
opal_list_item_t *item; opal_list_item_t *item;
opal_list_item_t *best_item = NULL;
mca_base_component_list_item_t *cli; mca_base_component_list_item_t *cli;
orte_soh_base_component_t *component, *best_component = NULL; orte_soh_base_component_t *component, *best_component = NULL;
orte_soh_base_module_t *module, *best_module = NULL; orte_soh_base_module_t *module, *best_module = NULL;
@ -56,28 +57,27 @@ int orte_soh_base_select(void)
module with the highest priority */ module with the highest priority */
if (NULL == module) { if (NULL == module) {
continue; continue;
} }
/* If this is the best one, save it */ /* If this is the best one, save it */
if (priority > best_priority) { if (priority > best_priority) {
/* If there was a previous best one, finalize */
if (NULL != best_module) {
best_module->finalize();
OBJ_RELEASE (best_item);
}
/* If there was a previous best one, finalize */ /* Save the new best one */
best_item = item;
best_module = module;
best_component = component;
if (NULL != best_module) { /* update the best priority */
best_module->finalize(); best_priority = priority;
}
/* Save the new best one */ } /* if best by priority */
best_module = module;
best_component = component;
/* update the best priority */
best_priority = priority;
} /* if best by priority */
/* If it's not the best one, finalize it */ /* If it's not the best one, finalize it */