Intel® Trace Analyzer and Collector User and Reference Guide

ID 767272
Date 3/31/2023
Document Table of Contents


int VT_registernamed (const char * threadname, int thindex)


Registers a new thread with Intel® Trace Analyzer and Collector under the given number and name.

Threads with the same number cannot have different names. If you try doing that, the thread uses the number, but not the new name.

Registering a thread twice with different names or numbers is an error. You can add a name to an already registered thread with VT_registernamed("new name", -1) if no name has been set before.


threadname desired name of the thread, or NULL/empty string if no name wanted
thindex desired thread number, pass negative number to let Intel® Trace Collector pick a number

Return values

Returns error code, see VT_registerthread