lockedBy

Type: Process

The read-only lockedBy property of the Lock class is a read-only property that is set to the process that currently holds a lock on the target object of the lock.

If the lock request is not waiting in the locks queue, this reference is set to null.

The code fragment in the following example shows the use of the lockedBy property.

foreach lock in locksArray do
    write lock.target.String;
    write lock.lockedBy.String;
endforeach;