diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-03-13 09:36:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-14 08:20:53 +0100 |
commit | c880d3e30405342a5ae6239cc77f69ed3ca6cc15 (patch) | |
tree | 66114edb519a8908326f08c82f04375e022aa6d5 /include/vcl/svapp.hxx | |
parent | ebe1f639cf65c20cee70aa55176bfb67e7b915f7 (diff) |
check for quit when calling Yield in loop
so we don't get stuck threads when the main application
quits
Change-Id: Id36e99267ceb4154873b6ef8ef494622fff6c19a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112409
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/vcl/svapp.hxx')
-rw-r--r-- | include/vcl/svapp.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index b0b5a069af4b..ab2af42dc41c 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -456,6 +456,10 @@ public: */ static void Quit(); + /** Has Quit() been called? + */ + static bool IsQuit(); + /** Attempt to process current pending event(s) It doesn't sleep if no events are available for processing. |