You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exécuteur du thread d'interface pour chaque frontend, y compris le navigateur système #462
Permettre au serveur (et aux services) d'exécuter une opération sur le thread de l'interface et d'en attendre le résultat : prérequis de IFileOpenDialog (STA COM avec pompe de messages), NSOpenPanel (thread principal, NSApplication) et GTK/portail.
Exigences
Un ordonnanceur (sender/receiver, ADR-006) exposé par chaque frontend : PostMessage (WebView2), file principale (WKWebView), g_main_context_invoke (WebKitGTK), tâche UI (CEF).
Navigateur système : aujourd'hui open() ne fait que lancer le navigateur et aucune boucle de toolkit ne tourne. Prévoir un mode facultatif où show() fait tourner sur le thread principal une boucle minimale (pompe de messages Windows, NSApplication en politique Accessory sous macOS, boucle GLib sous Linux) jusqu'à l'arrêt ; sans ce mode, l'exécuteur est absent et le backend natif indisponible.
Annulation et arrêt : une opération en attente est abandonnée proprement à la fermeture (ADR-006, ADR-007).
Linux : choisir la bibliothèque D-Bus du portail (GIO quand WebKitGTK est lié, sinon option dédiée) ; décision consignée.
Critères d'acceptation
Tests Catch2 avec frontend simulé ; tests de cycle de vie partagés : exécution, annulation, arrêt pendant une opération, appel après fermeture.
Activity
Wait for in-flight wake-ups before the loop frees its resources (#462)
Give each GLib quit source its own reference to the loop (#462)
Pump AppKit events in the macOS loop and post one WM_QUIT per opening…
Run a bounded batch per drain so a self-rescheduling operation cannot…
Coalesce loop wake-ups and require the main thread for the macOS loop (…
Give each GLib quit source its own reference to the loop (#462)
Pump AppKit events in the macOS loop and post one WM_QUIT per opening…
Run a bounded batch per drain so a self-rescheduling operation cannot…
Coalesce loop wake-ups and require the main thread for the macOS loop (…
Fail every operation queued behind a wake that throws (#462)
Link CMAKE_DL_LIBS from the common target, not only with WebKitGTK (#462
Make enqueue() and drain() exception-safe (#462)
Let a stop request retry when posting WM_QUIT fails on Windows (#462)
Fail the queued operations when a Windows wake cannot be posted, sign…
Merge pull request #509 from ambroise-leclerc/462-ui-thread-executor
Merge pull request #534 from ambroise-leclerc/462-ui-loop-stop-race