HP 3000 Manuals

HPUNLOADCM PROCEDURE Intrinsic [ Switch Programming User's Guide ] MPE/iX 5.0 Documentation


Switch Programming User's Guide

HPUNLOADCM PROCEDURE Intrinsic 

Procedures whose plabels are obtained via the HPLOADCMPROCEDURE intrinsic
function are automatically unloaded when the process terminates.
However, you can use the HPUNLOADCMPROCEDURE intrinsic to do the
unloading before the process terminates.

Syntax 

In HP Pascal/XL, the declaration of the HPUNLOADCMPROCEDURE intrinsic is
as follows:

          PROCEDURE HPUNLOADCMPROCEDURE; INTRINSIC;

Next is an example Pascal/XL call to HPUNLOADCMPROCEDURE:

          HPUNLOADCMPROCEDURE (proc, lib, status);

Parameters 

The parameters of the HPUNLOADCMPROCEDURE intrinsic are identical to
those of the HPLOADCMPROCEDURE intrinsic function.


NOTE You can use the LOADPROC and UNLOADPROC as functional equivalents of HPLOADCMPROCEDURE and HPUNLOADCMPROCEDURE, respectively. HPLOADCMPROCEDURE performs a hashing function on the name of the other-mode procedure and stores the plabel for that procedure in a system internal hash table. LOADPROC performs no hashing. Consequently, while both intrinsics involve high system overhead on the first call per name, HPLOADCMPROCEDURE involves substantially lower overhead on each subsequent call for that name. Refer to the appropriate entries in the MPE XL Intrinsics Reference Manual (32650-90028) for further details.


MPE/iX 5.0 Documentation