We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2e8e7c commit 74c780dCopy full SHA for 74c780d
thirdparty/loguru/loguru.cpp
@@ -1023,7 +1023,7 @@ namespace loguru
1023
// Where we store the custom thread name set by `set_thread_name`
1024
char* thread_name_buffer()
1025
{
1026
- __declspec( thread ) static char thread_name[LOGURU_THREADNAME_WIDTH + 1] = {0};
+ thread_local static char thread_name[LOGURU_THREADNAME_WIDTH + 1] = {0};
1027
return &thread_name[0];
1028
}
1029
#endif // LOGURU_WINTHREADS
0 commit comments