basic.unlock

Statement/BASIC Program, Releases: AP and R83

Resets execution lock.

Syntax

unlock unlock lock.number.expression

Description

resets an execution lock, in the range 0 to 63, previously set with a 'lock' statement.

If no 'lock.number' is specified, all locks set by the program are unlocked.

Example

again: lock 12 else rqm; goto again
read rec from file,id else print id:' not found'; rec = 'X'
write rec on file,id
unlock 12

This conditionally sets execution lock 12 just before a segment of code which
performs file retrieval and update. When complete, lock 12 is cleared by the
'unlock' statement.

See Also

Command Name Type Description
basic.statements Definition Definition of statements and functions.
tcl.clear-basic-locks Verb: Access Invokes command: 'clear-locks (b'.
tcl.clear-locks Verb: Access Clears locks.
basic.lock Statement Sets execution lock.
tcl.list-locks_rp Verb: Access Displays status of all locks.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.