[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TThread.NameThreadForDebugging

Set a thread name

Declaration

Source position: classesh.inc line 1654

public class procedure TThread.NameThreadForDebugging(

  aThreadName: UnicodeString;

  aThreadID: TThreadID = (-1)

);

class procedure TThread.NameThreadForDebugging(

  aThreadName: AnsiString;

  aThreadID: TThreadID = (-1)

);

Description

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.


Documentation generated on: Nov 16 2015