| 338 | } |
| 339 | |
| 340 | static const char* GetThreadName(int32_t thread_id) |
| 341 | { |
| 342 | CHECK_INITIALIZED_RETVAL("null"); |
| 343 | DM_MUTEX_SCOPED_LOCK(g_Lock); |
| 344 | const char** pname = g_ProfileContext->m_ThreadNames.Get(thread_id); |
| 345 | return pname != 0 ? *pname : "null"; |
| 346 | } |
| 347 | |
| 348 | static ThreadData* GetOrCreateThreadData(ProfileContext* ctx, int32_t thread_id) |
| 349 | { |