Root > Reference > All Functions > NameThread

Procedure NameThread

Previous pageReturn to chapter overviewNext page   

Names thread for debugging.

 

Unit

EBase

 

Syntax

 

Code (Delphi)

procedure NameThread(

const AName: String;

const AThreadID: Cardinal = 0

);

 

Parameters

AName [in]

A thread name and/or description to be set for the thread identified via AThreadID argument. Can be arbitrary string. Thread name does not have to be unique.

 

AThreadID [in, optional]

Thread ID (TID) of the thread which name has to be set.

 

Remarks

The name (description) of a thread can be set more than once; the most recently set value is used. You can retrieve the description of a thread via TEurekaThreadData.Name.

Note

It is recommended to use EurekaLog's naming routines instead of RTL (and possibly other frameworks), because EurekaLog supports Get/SetThreadDescription API, while RTL does not.

 




Send feedback... Build date: 2020-02-11
Last edited: 2020-02-11
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_function_ebase_namethread.php