Retrieve Thread Identifier (RETTHID)


Bound program access

Built-in number for RETTHID is 516. RETTHID ( ) : aggregate(8) /* thread_identifier */

Description  A thread identifier is returned which is unique within the process. While no two threads initiated within the same process will have the same identifier, it is possible that threads in different processes may have the same value for the identifier.

The thread identifier is used on some instructions to identify a thread. For example, it may be useful in associating queue space messages with a particular thread.

When a thread ends, its thread identifier is never reused within the process.

Authorization Required

Lock Enforcement

Exceptions

06 Addressing

08 Argument/Parameter

10 Damage Encountered

1C Machine-Dependent

20 Machine Support

22 Object Access

24 Pointer Specification

2E Resource Control Limit

36 Space Management

44 Protection Violation