mirror of
https://github.com/mmueller41/mxtasking.git
synced 2026-01-21 12:42:57 +01:00
Fix to make mxtasking compilable with gcc.
This commit is contained in:
@@ -6,8 +6,8 @@ namespace mx::util {
|
||||
/**
|
||||
* The maybe_atomic<T> makes T atomic in ARM hardware but none-atomic on x86_64.
|
||||
*/
|
||||
#if defined(__x86_64__) && (!defined(__has_feature) || !__has_feature(thread_sanitizer))
|
||||
template <typename T> using maybe_atomic = T;
|
||||
#if defined(__x86_64__) && (!defined(__has_feature)) //|| !__has_feature(thread_sanitizer))
|
||||
template <typename T> using maybe_atomic = std::atomic<T>;
|
||||
#else
|
||||
template <typename T> using maybe_atomic = std::atomic<T>;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user