Clear Lock Value (CLRLKVAL)

Bound program access

Built-in number for CLRLKVAL is 678. CLRLKVAL ( addr : address of a signed binary(8) value (has alignment restrictions - see description below) new_val : signed binary(8) value )

Description  The value pointed to by addr is set to the new_val value.

The first operand must be 8-byte aligned. Failure to have the first operand aligned properly will not be detected, but the results of the instruction are undefined when this occurs.

This operation is storage synchronizing. When a thread performs the CLRLKVAL instruction, shared space data values previously written by that thread will be visible to other threads at their next synchronizing actions. The shared space data values seen by those other threads will be at least as current as what was written by the thread performing the CLRLKVAL.

The CLRLKVAL instruction is designed specifically for implementation of low-level locking protocols. For correct storage synchronization, the CLRLKVAL instruction is commonly used in conjunction with the CHKLKVAL instruction.

See Storage Synchronization Concepts for additional information on storage synchronization.

Authorization Required

Lock Enforcement

Exceptions

06 Addressing

08 Argument/Parameter

10 Damage Encountered

1C Machine-Dependent

20 Machine Support

22 Object Access

24 Pointer Specification

2C Program Execution

36 Space Management

44 Protection Violation