decc$set_reentrancy

Controls the type of reentrancy that reentrant DEC C RTL routines will exhibit.

Format

#include  <reentrancy.h>

int decc$set_reentrancy  (int type);

Argument

type
The type of reentrancy desired. Use one of the following values:

The reentrancy type can be raised but never lowered. The ordering of reentrancy types from low to high is C$C_NONE, C$C_TOLERANT, C$C_ AST and C$C_MULTITHREAD. For example, once an application is set to multithread, a call to set the reentrancy to AST is ignored. A call to decc$set_reentrancy that attempts to lower the reentrancy type returns a value of -1.

Description

Use this function to change the type of reentrancy exhibited by reentrant routines.

decc$set_reentrancy must be called exclusively at the non-AST level.

In an application using DECthreads, DECthreads automatically sets the reentrancy to multithread.

Return Value
type  The type of reentrancy used before this call. 
-1  The reentrancy was set to a lower type. 


Previous Page | Next Page | Table of Contents | Index