BPX4CPO (cond_post) example
The following code demonstrates how to send an event
notification to a thread waiting in the cond_wait
or cond_timed_wait service. For the callable
service, see cond_post (BPX1CPO, BPX4CPO) — Post a thread for an event.
AMODE 31 callers use BPX1CPO (cond_post) example.
The following code notifies
thread (THID) that a CW_CONDVAR event has occurred.
CALL BPX4CPO, Send condition event notification +
(THID, Input: Thread ID of target pgm +
=A(CW_CONDVAR), Input: Event in BPXYCW +
RETVAL, Return value: 0 or -1 +
RETCODE, Return code +
RSNCODE), Reason code +
MF=(E,PLIST) ----------------------------------