[Libreoffice-commits] core.git: vcl/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jun 25 15:30:27 UTC 2021
vcl/source/uitest/uno/uiobject_uno.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 49cf5e5303d064a66e4ae97223df92238d556dd1
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Jun 25 14:06:26 2021 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Jun 25 17:29:48 2021 +0200
Fix misuse of volatile to avoid a data race
...introduced with 2601708e3c00092693af6dd04561125cafb21d8e "cleanup mutex and
signalling in ExecuteWrapper"
Change-Id: Iae1dda078d165355f82986f4105bd4bb53ce6e9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117885
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/source/uitest/uno/uiobject_uno.cxx b/vcl/source/uitest/uno/uiobject_uno.cxx
index ed208fd65d7d..14a50f08c7b7 100644
--- a/vcl/source/uitest/uno/uiobject_uno.cxx
+++ b/vcl/source/uitest/uno/uiobject_uno.cxx
@@ -7,6 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include <sal/config.h>
+
+#include <atomic>
#include <memory>
#include "uiobject_uno.hxx"
#include <utility>
@@ -56,7 +59,7 @@ class ExecuteWrapper
{
std::function<void()> mFunc;
Link<Timer*, void> mHandler;
- volatile bool mbSignal;
+ std::atomic<bool> mbSignal;
public:
More information about the Libreoffice-commits
mailing list