xHarbour Reference Documentation > Function Reference |
Retrieves the numeric system Thread ID of a thread.
GetSystemThreadID( [<pThreadHandle>] ) --> nSystemTID
The function returns the numeric ID of a thread as it is used by the operating system.
When a new thread is started, it gets assigned a unique numeric Thread ID (TID) by the operating system. The system TID of the current or a particular thread is returned by GetSystemThreadID(). It is mainly of informational use, since system TIDs are random generated. xHarbour's virtual machine maintains an additional TID which is sequentially generated. See function GetThreadID() for more information.
See also: | GetCurrentThread(), GetThreadID(), HB_MutexCreate(), StartThread(), ThreadSleep() |
Category: | Multi-threading functions , xHarbour extensions |
Source: | vm\thread.c |
LIB: | xhbmt.lib |
DLL: | xhbmtdll.dll |
http://www.xHarbour.com