[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Set a thread name
Source position: classesh.inc line 1801
public class procedure TThread.NameThreadForDebugging( |
aThreadName: UnicodeString; |
aThreadID: TThreadID = TThreadID(- 1) |
); |
aThreadName: AnsiString; |
aThreadID: TThreadID = TThreadID(- 1) |
); |
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. Currently this is not implemented for any FPC platform and is supported for Delphi compatibility only.