Returns operating system identifiers for the current process and thread.
#include <process.h> int getpid(void); int gettid(void);
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.
A non-sign-extended integer representation of the respective handle for the process or thread.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 4.0 | intime/rt/include/process.h | process.h | clib.lib |