Member variable Thread():name Foundation

The name of the Thread

Attribute: READONLY ASSIGNMENT PROTECTED
Data type: Character ("")
Description

The member variable :name contains the name assigned to the thread object. Thread names are displayed in the Threads view of the Xbase++ Workbench when the application is debugged. Assigning names to threads can significantly simplify the process of identifying threads during debugging.

The name of a thread must be assigned when creating the thread. To do this, the corresponding character string must be specified in the parameter <cName> of the method :new(). Once a thread is created, the name can only be changed in sub-classes derived from Thread. Attempting to assign a new thread name from outside the thread class raises a runtime error.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.