Internet Direct (Indy)
Home
PreviousUpNext
SetThreadName Function

Sets the name for the current thread of execution.

Pascal
procedure SetThreadName(
    const AName: string
);
Parameters 
Description 
AName 
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.

SetThreadPriorty

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.