The following code sets up the invoker to suspend processing
until any of the specified events (CW_INTRPT or CW_CONDVAR)
occurs. The BPX4CTW (cond_timed_wait) or BPX4CWA (cond_wait)
service is used to actually suspend processing.
For the callable service, see
cond_setup (BPX1CSE, BPX4CSE) — Set up to receive event notifications.
AMODE 31 callers use
BPX1CSE (cond_setup) example.
MVC EVENTLIST,=A(CW_INTRPT+CW_CONDVAR)
CALL BPX4CSE, Condition setup +
(EVENTLIST, Input: Event list BPXYCW +
RETVAL, Return value: 0 or -1 +
RETCODE, Return code +
RSNCODE), Reason code +
MF=(E,PLIST) ----------------------------------