int VT_registernamed (const char * threadname, int thindex)
Registers a new thread with Intel® Trace 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|
Returns error code, see VT_registerthread