GUI_APP_MAIN now calls Ctrl::ShutdownThreads at the end

This commit is contained in:
Mirek Fidler 2022-10-18 18:47:05 +02:00
parent 8c8c50af2c
commit a4ff4453fd
4 changed files with 6 additions and 0 deletions

View file

@ -21,6 +21,8 @@ int main(int argc, const char **argv, const char **envptr) { \
GuiMainFn_(); \
UPP::Ctrl::CloseTopCtrls(); \
UPP::CocoExit(); \
UPP::Ctrl::ShutdownThreads(); \
UPP::AppExit__(); \
return UPP::GetExitCode(); \
} \
\

View file

@ -22,6 +22,7 @@ int main(int argc, char **argv, const char **envptr) { \
UPP::AppExecute__(GuiMainFn_); \
UPP::Ctrl::CloseTopCtrls(); \
UPP::ExitGtkApp(); \
UPP::Ctrl::ShutdownThreads(); \
UPP::AppExit__(); \
return UPP::GetExitCode(); \
} \

View file

@ -25,6 +25,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR lpCmdLine, int nCmdS
GuiMainFn_(); \
} \
UPP::Ctrl::ExitWin32(); \
UPP::Ctrl::ShutdownThreads(); \
UPP::AppExit__(); \
return UPP::GetExitCode(); \
} \
@ -44,6 +45,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdSh
UPP::AppExecute__(GuiMainFn_); \
UPP::Ctrl::CloseTopCtrls(); \
UPP::Ctrl::ExitWin32(); \
UPP::Ctrl::ShutdownThreads(); \
UPP::AppExit__(); \
return UPP::GetExitCode(); \
} \

View file

@ -17,6 +17,7 @@ int main(int argc, const char **argv, const char **envptr) { \
UPP::Ctrl::InitX11(NULL); \
UPP::AppExecute__(GuiMainFn_); \
UPP::Ctrl::ExitX11(); \
UPP::Ctrl::ShutdownThreads(); \
UPP::AppExit__(); \
return UPP::GetExitCode(); \
} \