Topic Path: Symbol Reference > Functions > SetThreadName Function
SetThreadName Function

Sets the name for the current thread of execution.

procedure SetThreadName(
    const AName: string
Name to assign to the current thread of execution. 

SetThreadName is a procedure used to assign the name for the current thread as used in the IDE Debugger. SetThreadName requires the compiler define ALLOW_NAMED_THREADS, and is available for the following compiler verisons: 


Delphi 7 
C++ Builder 6 
C++ Builder 7 



For non-Windows platforms, or compiler version other than the preceeding, SetThreadName is an empty procedure. 

SetThreadName passes the thread name to the debugger by calling RaiseException using a specific memory address. 

Use SetThreadPriorty to adjust the CPU priority for a specifed thread of execution.


Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.