BPX1PTS (pthread_self) example
The following code gets the thread ID of the calling thread.
For the callable service, see pthread_self (BPX1PTS, BPX4PTS) — Query the thread ID.
AMODE 64 callers use BPX4PTS (pthread_self) example.
CALL BPX1PTS, pthread_self +
(THID), Output: Thread ID +
VL,MF=(E,PLIST) ----------------------------------