DCE for the HP e3000 (B3821-90002)
Programming with Kernel Threads
Changes to AIF Routines
Chapter 5
64
Changes to AIF Routines
The following AIF routine item numbers are associated with kernel threads:
AIFPROCGET and
AIFPROCPUT
The following are the associated item numbers:
Item# Name (Type) and Description
2137 Thread Type (I32) — Indicates what type of thread this process is.
Valid values are:
0 Regular process (not a thread).
1 Initial thread (process created by the RUN command
or CREATEPROCESS that has executed at least one
PTHREAD intrinsic).
2 Secondary thread (process created by the
HPTHDCREATE intrinsic).
2138 Initial Thread Pin (I32) — Returns the PIN of the initialthread forthis
process. If the process is not part of a threaded task, then a PIN of 0 is
returned. If the process is an initial thread, then its own PIN is
returned.
2139 Initial Thread PID (REC) — Returns the PID of the initial thread for
this process. If the process is not part of a threaded task, then a PID of
0 is returned. If the process is an initial thread, then its own PID is
returned.
Record type: longint_type (Refer to the AIF Reference Manual)
2140 List of Secondary Thread PIDs (REC) — Returns of list of PIDs of all
the secondary threads. The first word must hold the size, in longwords,
of the rest of the buffer area. The first word, upon return, specifies the
number of PIDs returned.
This item is relevant only if the process is an initial thread or a
secondary thread. If a regular process is specified, then no PIDs are
returned and a value of 0 is returned in the first word.
Record type: I64rec_type (Refer to the AIF Reference Manual).
2141 TIN (I32) — Returns the Thread Identification Number. Each thread
must have a uniqueTIN. For a regular process (non-thread) thevalue 0
is returned.