MCPcopy Create free account
hub / github.com/citron-neo/emulator / SetCurrentThreadName

Function SetCurrentThreadName

src/common/thread.cpp:86–88  ·  view source on GitHub ↗

Sets the debugger-visible name of the current thread.

Source from the content-addressed store, hash-verified

84#ifdef _MSC_VER
85
86// Sets the debugger-visible name of the current thread.
87void SetCurrentThreadName(const char* name) {
88 SetThreadDescription(GetCurrentThread(), UTF8ToUTF16W(name).data());
89#if defined(CITRON_ENABLE_TRACY) && CITRON_ENABLE_TRACY
90 tracy::SetThreadName(name);
91#endif

Callers 15

RunThreadMethod · 0.85
ThreadEntryMethod · 0.85
InitializeServerMethod · 0.85
ThreadFuncMethod · 0.85
VsyncThreadMethod · 0.85
ThreadFuncMethod · 0.85
RunHostThreadFuncFunction · 0.85
AudioManagerMethod · 0.85
ThreadFuncMethod · 0.85
InitMethod · 0.85
MainMethod · 0.85

Calls 3

UTF8ToUTF16WFunction · 0.85
GetLastErrorMsgFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected