Sign in Join
FPDoc Onlineexperiment

GetCurrentThreadId function

In unit System

Return the id of the currently running thread.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.