BPX4PTX (pthread_exit_and_get) example
The following code terminates a thread and creates a new
thread. For the callable service, see pthread_exit_and_get (BPX1PTX, BPX4PTX) — Exit and get a new thread.
For the data structure, see BPXYCONS — Constants used by services. AMODE 31 callers
use BPX1PTX (pthread_exit_and_get) example.
CALL BPX4PTX, pthread_exit_and_get +
(STATFLD, Input: Status field +
OPTIONS, Input: Options field +
SIGNALREG, Input: Signal registration usrdata+
RETVAL, Return value: 0 or -1 ->BPXYPTXL +
RETCODE, Return code +
RSNCODE), Reason code +
MF=(E,PLIST) ----------------------------------