GetCurrentThreadId
Return the id of the currently running thread.
Declaration
Source position: threadh.inc line 158
function GetCurrentThreadId : TThreadID;
Description
GetCurrentThreadId returns the ID of the currently running thread. It can be used in calls such as KillThread or ThreadSetPriority
Errors
None.
See also
Name | Description |
---|---|
KillThread | Kill a running thread |
ThreadSetPriority | Set the priority of a thread. |