Creating a latch set (ISGLCRT and ISGLCR64 services)

Applications can call the Latch_Create service to create a latch set during initialization or whenever latches are required. The system keeps each latch set in storage with a protection key that matches the PSW key of the caller of Latch_Create.

The caller of Latch_Create must specify:
If you want the latch obtain services to detect some simple latch deadlock situations, you can specify the ISGLCRT_DEADLOCKDET1 or ISGLCRT_DEADLOCKDET2 option on the ISGLCRT service. The following deadlock situations can be detected: See z/OS MVS Programming: Authorized Assembler Services Reference EDT-IXG for instructions about how to use the two deadlock detection options.

Once you create a latch set, the latch set remains in place for the life of the job or address space. You cannot delete a latch set.