TThread.CurrentThread property
Return current thread instance.
Declaration
property CurrentThread: TThread read GetCurrentThread;Description
TThread.CurrentThread can be used to get the current thread instance.
This is useful in code that is not inside a TThread implementation, but
which needs access to the current thread.
For threads that were created outside of FPC code (DLLs or a calling program) this will return a dummy TThread instance.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
