BPX1CWA (cond_wait) example

The following code suspends the calling thread until either of two events occurs: the arrival of a signal (CW_INTRPT) or some other thread using the cond_post service to send this thread a CW_CONDVAR notification. For the callable service, see cond_wait (BPX1CWA, BPX4CWA) — Suspend a thread for an event. AMODE 64 callers use BPX4CWA (cond_wait) example.
                                              
         MVC   EVENTLIST,=A(CW_INTRPT+CW_CONDVAR)                       
         CALL  BPX1CWA,              Wait for condition events         +
               (EVENTLIST,           Input: Event list          BPXYCW +
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------