[Libreoffice-commits] core.git: cui/source

Miklos Vajna vmiklos at collabora.co.uk
Tue Jun 5 12:07:07 UTC 2018


 cui/source/options/personalization.hxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit f4ac7b5a084a7cf483bb89a2fa411f9df70df4d0
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Jun 5 11:31:18 2018 +0200

    Related: tdf#117866 cui: use std::atomic for thread termination flag
    
    Change-Id: Ia9185312b12fdbc1f5fe5ec48417aec3c5b8d4bf
    Reviewed-on: https://gerrit.libreoffice.org/55320
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx
index 1f1e1f1e77ca..aae43240ea80 100644
--- a/cui/source/options/personalization.hxx
+++ b/cui/source/options/personalization.hxx
@@ -16,6 +16,7 @@
 #include <vcl/prgsbar.hxx>
 #include <vector>
 #include <array>
+#include <atomic>
 
 #define CATEGORYCOUNT 6    // Number of persona categories
 
@@ -119,7 +120,8 @@ private:
 
     VclPtr<SelectPersonaDialog> m_pPersonaDialog;
     OUString m_aURL;
-    bool m_bExecute, m_bDirectURL;
+    std::atomic<bool> m_bExecute;
+    bool m_bDirectURL;
 
     virtual ~SearchAndParseThread() override;
     virtual void execute() override;


More information about the Libreoffice-commits mailing list