### ndfLock

Lock an NDF for use by the current thread

#### Description:

This function locks the supplied NDF (both the supplied identifier and the associated base NDF) for sole use by the current thread. An error will be reported if the NDF is currently locked by another thread. Consequently, the NDF should be unlocked using ndfUnlock before calling this function.

#### Invocation

void ndfLock( int indf, int $\ast$status )

#### Notes:

• This function returns without action if the NDF is already locked by the currently running thread.

• The supplied NDF identifier will be imported into the current NDF context within the currently running thread.

• This function attempts to execute even if " status" is set on entry, although no further error report will be made if it subsequently fails under these circumstances.

#### Parameters :

NDF identifier.
##### $\ast$status
The global status.