MCPcopy Create free account
hub / github.com/defold/defold / GetThreadName

Function GetThreadName

engine/profiler/src/basic/profiler_basic.cpp:340–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340static 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
348static ThreadData* GetOrCreateThreadData(ProfileContext* ctx, int32_t thread_id)
349{

Callers 1

ScopeEndFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected