pfm_$inhibit_faults Library Routine

Purpose

Inhibits asynchronous faults, but allows task switching.

Syntax

#include <idl/c/base.h>
#include <idl/c/pfm.h>
void
pfm_$inhibit_faults (void)

Description

The pfm_$inhibit routine prevents asynchronous faults, except for time-sliced task switching, from being passed to the calling process. While faults are inhibited, the operating system holds at most one asynchronous fault. Consequently, a call to the pfm_$inhibit_faults routine can result in the loss of some signals. For that and other reasons, it is good practice to inhibit faults only when absolutely necessary.

Note: This routine has no effect on the processing of synchronous faults, such as access violations or floating-point and overflow exceptions.

Examples

To prevent faults from occurring in a critical portion of a routine, use the following:

pfm_$inhibit_faults( );