DestroyLock function (LotusScript® Language)

Removes the current link to the lock specified. If the number of links is zero, the lock is destroyed.

Syntax

DestroyLock ( lockID As Integer)

Elements

lockID

ID of lock to be destroyed (assigned by LotusScript® through CreateLock)

Return values

DestroyLock returns TRUE if the lock was successfully destroyed.

Usage

Any agent that uses locks should be sure to use the DestroyLock function when they are done using a lock. If the lock is not destroyed, it will continue to use system resources as no one can use that lock again until the agent exits.

Extended examples: lock functions