LOTUSSCRIPT LANGUAGE


CodeLock function
Acquires the lock specified by ID.

Syntax

CodeLock (lockID)

Elements

lockID


Return values

CodeLock will return TRUE, if the lock is acquired.

Usage

Acquires the lock specified by ID. If the lock is already held by another agent, the thread stalls until the lock becomes available. Bear in mind that CodeLock and CodeUnLock should always be done in pairs; failure to adhere to this practice will lead to unexpected results.

Extended examples: lock functions

See Also