diff --git a/src/stage/gtk-lumiera.cpp b/src/stage/gtk-lumiera.cpp index fd64a3b02..95ff85886 100644 --- a/src/stage/gtk-lumiera.cpp +++ b/src/stage/gtk-lumiera.cpp @@ -49,10 +49,10 @@ #include "stage/gtk-base.hpp" #include "lib/error.hpp" +#include "lib/thread.hpp" #include "stage/ui-bus.hpp" #include "stage/guifacade.hpp" #include "stage/ctrl/ui-manager.hpp" -#include "vault/thread-wrapper.hpp" #include "common/subsys.hpp" #include "lib/nocopy.hpp" @@ -65,8 +65,8 @@ extern "C" { -using vault::Thread; using lumiera::Subsys; +using lib::launchDetached; using lumiera::error::LUMIERA_ERROR_STATE; using stage::LUMIERA_INTERFACE_INAME(lumieraorg_Gui, 1); @@ -128,28 +128,24 @@ namespace stage { return errorMsgBuff; } }; - - - void - runGUI (Subsys::SigTerm reportOnTermination) ///< this is the UI-Thread - { - string shutdownLog = GtkLumiera{}.run(); - - // inform main thread that the GUI has been shut down... - reportOnTermination (&shutdownLog); - }//(End) GUI-Thread. - + //(End) GUI-Thread. }//(End) impl details bool - launchUI (Subsys::SigTerm& terminationHandle) + launchUI (Subsys::SigTerm& reportOnTermination) { try { - Thread {"GUI-Main", bind (&runGUI, terminationHandle)}; ///////////////////////////////////////////OOO this shows we need a self-contained and detached thread! + launchDetached ("GUI-Main" + , [reportOnTermination] + { + string shutdownLog = GtkLumiera{}.run(); + // inform main thread that the GUI has been shut down... + reportOnTermination (&shutdownLog); + }); return true; // if we reach this line... } catch(...) diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index 97422d7f6..20c77ce99 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -65010,7 +65010,7 @@ - + @@ -66293,7 +66293,8 @@ - + + @@ -81506,11 +81507,11 @@ Date: Thu Apr 20 18:53:17 2023 +0200 - - + + - - + + @@ -82464,13 +82465,67 @@ Date: Thu Apr 20 18:53:17 2023 +0200 - - - - - + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + das ist jetzt alles keine Verbesserung + + + + + + + + + + + + + + + sie sieht bloß »umständlich« aus + + + + + + + + + + + + + + +
+ das ist jetzt alles keine Verbesserung +
+ sie sieht bloß »umständlich« aus +