MCPcopy Create free account
hub / github.com/dobin/RedEdr / thread_name_buffer

Function thread_name_buffer

RedEdrShared/loguru.cpp:1055–1059  ·  view source on GitHub ↗

Where we store the custom thread name set by `set_thread_name`

Source from the content-addressed store, hash-verified

1053#if LOGURU_WINTHREADS
1054 // Where we store the custom thread name set by `set_thread_name`
1055 char* thread_name_buffer()
1056 {
1057 __declspec(thread) static char thread_name[LOGURU_THREADNAME_WIDTH + 1] = { 0 };
1058 return &thread_name[0];
1059 }
1060#endif // LOGURU_WINTHREADS
1061
1062 void set_thread_name(const char* name)

Callers 2

set_thread_nameFunction · 0.85
get_thread_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected