From 7b8735c721f921a3d796b945c9acad114619ccfd Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Tue, 23 Jul 2024 16:27:49 +0200 Subject: [PATCH] Fix to make mxtasking compilable with gcc. --- src/mx/util/maybe_atomic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mx/util/maybe_atomic.h b/src/mx/util/maybe_atomic.h index 0c416f8..0fc1877 100644 --- a/src/mx/util/maybe_atomic.h +++ b/src/mx/util/maybe_atomic.h @@ -6,9 +6,9 @@ namespace mx::util { /** * The maybe_atomic makes T atomic in ARM hardware but none-atomic on x86_64. */ -#if defined(__x86_64__) && (!defined(__has_feature) || !__has_feature(thread_sanitizer)) -template using maybe_atomic = T; +#if defined(__x86_64__) && (!defined(__has_feature)) //|| !__has_feature(thread_sanitizer)) +template using maybe_atomic = std::atomic; #else template using maybe_atomic = std::atomic; #endif -} // namespace mx::util \ No newline at end of file +} // namespace mx::util