mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
change the main thread name to bambustu_main
the max length of linux's thread name could only be 16 bytes bambustudio_main can not be set by pthread_setname_np Change-Id: Idab83896c81787b32f6a4dde869b101da1d69e5c
This commit is contained in:
parent
e05f28d0fb
commit
d9d88b8022
3 changed files with 11 additions and 11 deletions
|
@ -525,7 +525,7 @@ void AppConfig::save()
|
|||
{
|
||||
// Returns "undefined" if the thread naming functionality is not supported by the operating system.
|
||||
std::optional<std::string> current_thread_name = get_current_thread_name();
|
||||
if (current_thread_name && *current_thread_name != "bambustudio_main")
|
||||
if (current_thread_name && *current_thread_name != "bambustu_main")
|
||||
throw CriticalException("Calling AppConfig::save() from a worker thread!");
|
||||
}
|
||||
|
||||
|
@ -777,7 +777,7 @@ void AppConfig::save()
|
|||
{
|
||||
// Returns "undefined" if the thread naming functionality is not supported by the operating system.
|
||||
std::optional<std::string> current_thread_name = get_current_thread_name();
|
||||
if (current_thread_name && *current_thread_name != "bambustudio_main")
|
||||
if (current_thread_name && *current_thread_name != "bambustu_main")
|
||||
throw CriticalException("Calling AppConfig::save() from a worker thread!");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue