178. Error Handlers for Windows


Up: Error Handling Next: Error Handlers for Files Previous: Error Handlers for Communicators

MPI_WIN_CREATE_ERRHANDLER(function, errhandler)
IN functionuser defined error handling procedure (function)
OUT errhandler MPI error handler (handle)

2.2 int MPI_Win_create_errhandler(MPI_Win_errhandler_function *function, MPI_Errhandler *errhandler)
MPI_WIN_CREATE_ERRHANDLER(FUNCTION, ERRHANDLER, IERROR)
EXTERNAL FUNCTION
INTEGER ERRHANDLER, IERROR

2.2 { static MPI::Errhandler MPI::Win::Create_errhandler(MPI::Win::Errhandler_function* function) (binding deprecated, see Section Deprecated since MPI-2.2 ) }

Creates an error handler that can be attached to a window object. The user routine should be, in C, a function of type MPI_Win_errhandler_function which is defined as

2.2 typedef void MPI_Win_errhandler_function(MPI_Win *, int *, ...);
The first argument is the window in use, the second is the error code to be returned.

In Fortran, the user routine should be of the form:

2.2 SUBROUTINE WIN_ERRHANDLER_FUNCTION(WIN, ERROR_CODE)
INTEGER WIN, ERROR_CODE

In C++, the user routine should be of the form:

2.2 { typedef void MPI::Win::Errhandler_function(MPI::Win &, int *, ... ); (binding deprecated, see Section Deprecated since MPI-2.2 ) }

MPI_WIN_SET_ERRHANDLER(win, errhandler)
INOUT winwindow (handle)
IN errhandlernew error handler for window (handle)

int MPI_Win_set_errhandler(MPI_Win win, MPI_Errhandler errhandler)

MPI_WIN_SET_ERRHANDLER(WIN, ERRHANDLER, IERROR)
INTEGER WIN, ERRHANDLER, IERROR

{ void MPI::Win::Set_errhandler(const MPI::Errhandler& errhandler) (binding deprecated, see Section Deprecated since MPI-2.2 ) }

Attaches a new error handler to a window. The error handler must be either a predefined error handler, or an error handler created by a call to MPI_WIN_CREATE_ERRHANDLER.

MPI_WIN_GET_ERRHANDLER(win, errhandler)
IN winwindow (handle)
OUT errhandlererror handler currently associated with window (handle)

int MPI_Win_get_errhandler(MPI_Win win, MPI_Errhandler *errhandler)

MPI_WIN_GET_ERRHANDLER(WIN, ERRHANDLER, IERROR)
INTEGER WIN, ERRHANDLER, IERROR

{ MPI::Errhandler MPI::Win::Get_errhandler() const (binding deprecated, see Section Deprecated since MPI-2.2 ) }

Retrieves the error handler currently associated with a window.



Up: Error Handling Next: Error Handlers for Files Previous: Error Handlers for Communicators


Return to MPI-2.2 Standard Index
Return to MPI Forum Home Page

(Unofficial) MPI-2.2 of September 4, 2009
HTML Generated on September 10, 2009