Obtaining, releasing, and testing locks (SETLOCK)

Use the SETLOCK macro to obtain, release, or test a specified lock or set of locks (using the OBTAIN, RELEASE, and TEST parameters). To use SETLOCK, you must be executing in supervisor state with a PSW key of 0. Users of SETLOCK can also be executing in SRB mode, in cross memory mode, in access register or primary address space control (ASC) mode.