INtime SDK Help
getpid, gettid

Returns operating system identifiers for the current process and thread.

#include <process.h>

int getpid(void);
int gettid(void);

Remarks

getpid returns an integer value containing the current process' handle.

gettid returns an integer value containing the current thread's handle.

These functions cache the respective values so that if they are called multiply they are more efficient than the underlying calls to GetRtThreadHandles.

Return Values

A non-sign-extended integer representation of the respective handle for the process or thread.

Requirements

Versions Defined in Include Link to
INtime 4.0 intime/rt/include/process.h process.h clib.lib
See Also

Threads