Sign in Join
FPDoc Onlineexperiment

SetThreadDebugName procedure

In unit System

Set the debug name for a thread.

Declaration

pascal
procedure SetThreadDebugName(threadHandle: TThreadID; 
 const ThreadName: AnsiString)

Description

SetThreadDebugName can be used to set the name of a thread in a debugging context. A debugger can use this information to show the name instead of the thread ID, thus making debugging easier. The current platform's TThreadManager implementation must support this call.

Errors

This call does nothing on platforms that do not support threading.

See also

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