mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00: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:
@@ -95,7 +95,7 @@ static void glfw_callback(int error_code, const char* description)
|
||||
int CLI::run(int argc, char **argv)
|
||||
{
|
||||
// Mark the main thread for the debugger and for runtime checks.
|
||||
set_current_thread_name("bambustudio_main");
|
||||
set_current_thread_name("bambustu_main");
|
||||
|
||||
#ifdef __WXGTK__
|
||||
// On Linux, wxGTK has no support for Wayland, and the app crashes on
|
||||
@@ -1736,7 +1736,7 @@ LONG WINAPI VectoredExceptionHandler(PEXCEPTION_POINTERS pExceptionInfo)
|
||||
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
extern "C" {
|
||||
__declspec(dllexport) int __stdcall bambustudio_main(int argc, wchar_t **argv)
|
||||
__declspec(dllexport) int __stdcall bambustu_main(int argc, wchar_t **argv)
|
||||
{
|
||||
// Convert wchar_t arguments to UTF8.
|
||||
std::vector<std::string> argv_narrow;
|
||||
|
||||
Reference in New Issue
Block a user