mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-15 11:18:29 +12:00
Update thread names (#1120)
This commit is contained in:
parent
731713de3a
commit
eaa82817dd
20 changed files with 29 additions and 12 deletions
|
@ -155,7 +155,9 @@ void SetThreadName(const char* name)
|
|||
#elif BOOST_OS_MACOS
|
||||
pthread_setname_np(name);
|
||||
#else
|
||||
pthread_setname_np(pthread_self(), name);
|
||||
if(std::strlen(name) > 15)
|
||||
cemuLog_log(LogType::Force, "Truncating thread name {} because it was longer than 15 characters", name);
|
||||
pthread_setname_np(pthread_self(), std::string{name}.substr(0,15).c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue