vcl/source/opengl/OpenGLHelper.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 7502c56675dd99f0e168707c75caa08713238835 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Mar 27 14:44:36 2025 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Mar 27 20:35:52 2025 +0100 convert volatile bool to std::atomic<bool> volatile does not mean thread-safe in C++ Change-Id: Iea5f38f4cb0db56634c904d66da275bd2d5e90b4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183393 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx index 19fb34df5d96..6e8ea0c95817 100644 --- a/vcl/source/opengl/OpenGLHelper.cxx +++ b/vcl/source/opengl/OpenGLHelper.cxx @@ -27,6 +27,7 @@ #include <stdarg.h> #include <string_view> +#include <atomic> #include <vector> #include <unordered_map> @@ -45,7 +46,7 @@ #include <opengl/win/WinDeviceInfo.hxx> #endif -static bool volatile gbInShaderCompile = false; +static std::atomic<bool> gbInShaderCompile = false; namespace {