e7fd591066
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/tbb#15bdf135d574a0af61185944453e9c8f5296a251
13 lines
617 B
Diff
13 lines
617 B
Diff
diff -up tbb-2019_U9/src/tbb/tools_api/ittnotify_config.h.orig tbb-2019_U9/src/tbb/tools_api/ittnotify_config.h
|
|
--- tbb-2020.1/src/tbb/tools_api/ittnotify_config.h.orig 2020-01-21 04:26:46.000000000 -0700
|
|
+++ tbb-2020.1/src/tbb/tools_api/ittnotify_config.h 2020-01-22 20:59:51.911673011 -0700
|
|
@@ -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 */
|
|
|