struct CryThreadInfo { string m_Name; uint32 m_ID; };
CryThread.h
Members |
Description |
string m_Name; |
The symbolic name of the thread. You may set this name directly or through the SetName() method of CrySimpleThread (or derived class). |
uint32 m_ID; |
A thread identification number. The number is unique but architecture specific. Do not assume anything about that number except for being unique. This field is filled when the thread is started (i.e. before the Run() method or thread routine is called). It is advised that you do not change this number manually. |
Class holding information about a thread.
A reference to the thread information can be obtained by calling GetInfo() on the CrySimpleThread (or derived class) instance.
If the code is compiled with NO_THREADINFO defined, then the GetInfo() method will return a reference to a static dummy instance of this structure. It is currently undecided if NO_THREADINFO will be defined for release builds!
PS3 NOTE: Make sure the same NO_THREADINFO setting is used on SPU and PPU. On SPU the 'm_Name' field is replaced by a dummy field.