A LifetimeLock is always used in conjunction with
a Lock. It simply takes and holds the lock
for as long as the LifetimeLock object exists.
By using a LifetimeLock to take/release a lock, you ensure that
the lock is released even if an Error is
thrown during the processing protected by the lock.
The create function is used to create a LifetimeLock.
(create LifetimeLock myLock)
where the variable myLock is a Lock object.
| property name | property type | description |
|---|---|---|
lock |
Lock | (readOnly) the contained lock |
None.
| Contents | Index | Current topic: objects | Related links: built-in objects |