CLEAR.LOCKS

CLEAR.LOCKS

Top  Previous  Next

 

The CLEAR.LOCKS command releases task locks.

 

 

Format

 

CLEAR.LOCKS {lock.number}

 

where

 

lock.numberis the number of the task lock (0 to 63) to be released. If omitted, all task locks held by the process are released.

 

 

@SYSTEM.RETURN.CODE is set to the lock number if releasing a single lock or 64 if releasing all locks. Errors result in negative error code values.

 

 

Examples

 

CLEAR.LOCKS 5

Released task lock 5

 

This example shows the CLEAR.LOCKS command used to release a specific task lock.

 

 

CLEAR.LOCKS

All task locks released

 

This command releases all task locks held by the process.

 

 

See also:

LIST.LOCKS, LOCK (command), LOCK (QMBasic), TESTLOCK(), UNLOCK