1
1
openmpi/orte/mca/errmgr/bproc/errmgr_bproc.h
George Bosilca 2e2bf472ff Mark the orte_abort function as noreturn and change the return value from
int to void. This function call exit at the end, so there is no way to
return from there. Apply the same thing to the errmsg_abort function and
update all components.

This commit was SVN r15704.
2007-07-31 16:09:52 +00:00

82 строки
2.1 KiB
C

/* -*- C -*-
*
* 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-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 ORTE_ERRMGR_BPROC_H
#define ORTE_ERRMGR_BPROC_H
#include "orte_config.h"
#include "orte/orte_types.h"
#include "orte/mca/ns/ns_types.h"
#include "orte/mca/gpr/gpr_types.h"
#include "orte/mca/errmgr/errmgr.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Module open / close
*/
int orte_errmgr_bproc_open(void);
int orte_errmgr_bproc_close(void);
/*
* Startup / Shutdown
*/
orte_errmgr_base_module_t*
orte_errmgr_bproc_component_init(bool *allow_multi_user_threads, bool *have_hidden_threads, int *priority);
int orte_errmgr_bproc_finalize(void);
/*
* globals used within the component
*/
typedef struct {
int debug;
orte_process_name_t *replica;
} orte_errmgr_bproc_globals_t;
extern orte_errmgr_bproc_globals_t orte_errmgr_bproc_globals;
/*
* Component API functions
*/
int orte_errmgr_bproc_proc_aborted(orte_gpr_notify_message_t *msg);
int orte_errmgr_bproc_incomplete_start(orte_gpr_notify_message_t *msg);
void orte_errmgr_bproc_error_detected(int error_code, char *fmt, ...) __opal_attribute_format__(__printf__, 2, 3);
void orte_errmgr_bproc_abort(void) __opal_attribute_noreturn__;
int orte_errmgr_bproc_register_job(orte_jobid_t job);
int orte_errmgr_bproc_abort_procs_request(orte_process_name_t *procs, orte_std_cntr_t nprocs);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif