aboutsummaryrefslogtreecommitdiff
path: root/devel/onetbb/files/extra-patch-src_tbb_tools__api_ittnotify__config.h
blob: 17105704d4cff51d75bfe69d882080f5387c5ca7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/tbb/tools_api/ittnotify_config.h.orig	2021-06-30 18:42:09 UTC
+++ src/tbb/tools_api/ittnotify_config.h
@@ -335,7 +335,7 @@ ITT_INLINE long
 __itt_interlocked_increment(volatile long* ptr) ITT_INLINE_ATTRIBUTE;
 ITT_INLINE long __itt_interlocked_increment(volatile long* ptr)
 {
-    return __TBB_machine_fetchadd4(ptr, 1) + 1L;
+    return __atomic_fetch_add(ptr, 1L, __ATOMIC_SEQ_CST) + 1L;
 }
 #endif /* ITT_SIMPLE_INIT */