BPX4PTK (pthread_kill) example
The following code sends a signal to a specified thread
(THID). For the callable service, see pthread_kill (BPX1PTK, BPX4PTK) — Send a signal to a thread.
For the data structure, see BPXYSIGH — Signal constants.
AMODE 31
callers use BPX1PTK (pthread_kill) example.
MVC SIGNAL,=A(SIGALRM#) Input: SIGALRM BPXYSIGH
MVC SIGNALOPTIONS,=XL4'00000000' Input: Signal options
CALL BPX4PTK, pthread_kill +
(THID, Input: Thread ID +
SIGNAL, Input: Signal or 0 BPXYSIGH +
SIGNALOPTIONS, Input: Signal options +
RETVAL, Return value: 0 or -1 +
RETCODE, Return code +
RSNCODE), Reason code +
MF=(E,PLIST) ----------------------------------