Synopsis

MPI_Errhandler MPI_Errhandler_fromint(int errhandler)

Input Parameters

errhandler

errhandler (integer)

Description

MPI_Errhandler_fromint translates a C integer to the appropriate C error handler handle. This function is part of handle serialization functionality that supports language bindings and other use cases requiring integer representations of handles. Only an integer obtained from a previous call to MPI_ERRHANDLER_TOINT may be passed to this function.

It is erroneous to pass an integer associated with an errhandler that has been freed.

Thread and Interrupt Safety

This routine is thread-safe. This means that this routine may be safely used by multiple threads without the need for any user-provided thread locks. However, the routine is not interrupt safe. Typically, this is due to the use of memory allocation routines such as 'malloc' or other non-MPICH runtime routines that are themselves not interrupt-safe.