LOTUSSCRIPT LANGUAGE


Synchronization functions
LotusScript 4.0 (in Domino 5.0) includes a new set of primitives to allow LotusScript agents to synchronize with one another:

CreateLockˇXfinds the lock ID associated with Name. If none exists, the Lock ID is created.

DestroyLockˇXremoves the current link to the lock specified. If the number of links is zero, the lock is destroyed.

CodeLockˇXacquires the lock specified by ID. If the lock is already held by another agent, the thread stalls until the lock becomes available.

CodeUnlockˇXreleases the lock, making it available for the next agent requesting it.

CodeLockCheckˇXreturns the number of agents waiting for the the specified lock, plus 1.

SleepˇXcauses a script to pause for at least the number of seconds specified.

See Also