TThread.NameThreadForDebugging procedure
Set a thread name.
Declaration
class procedure NameThreadForDebugging(aThreadName: UnicodeString;
aThreadID: TThreadID=TThreadID(- 1))
; static
class procedure NameThreadForDebugging(aThreadName: AnsiString;
aThreadID: TThreadID=TThreadID(- 1))
; staticDescription
NameThreadForDebugging sets the name of thread
aThreadID to
aThreadName. The thread name can be
Unicode or ansistring. This is mainly useful for debugging purposes, as
thread names are more easily recognizable than IDs.
Note that this requires OS support, so at the moment it is Windows and Unix only.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
