The pthread_self callable service gets the thread ID of the calling thread.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1PTS): | 31-bit |
AMODE (BPX4PTS): | 64-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
AMODE 64 callers use BPX4PTS with the same parameter.
The name of an 8-byte field in which the service places the thread ID of the calling thread.
There are no restrictions on the use of the pthread_self service.
For an example using this callable service, see BPX1PTS (pthread_self) example.