Permalink
Browse files

Add an extension point in atomic.c.

  • Loading branch information...
alexrp committed Oct 18, 2013
1 parent 1b9ca03 commit 55d338134d006f070bb533484337e4c9e485be86
Showing with 7 additions and 5 deletions.
  1. +7 −5 mono/utils/atomic.c
View
@@ -421,7 +421,7 @@ void InterlockedWrite64(volatile gint64 *dst, gint64 val)
#endif
-#if defined (BROKEN_64BIT_ATOMICS_INTRINSIC)
+#if defined (NEED_64BIT_CMPXCHG_FALLBACK)
#if defined (TARGET_OSX)
@@ -431,13 +431,13 @@ InterlockedCompareExchange64(volatile gint64 *dest, gint64 exch, gint64 comp)
return __sync_val_compare_and_swap (dest, comp, exch);
}
-#else
-
-#endif
+#elif defined (HAVE_64BIT_CMPXCHG_FALLBACK)
+#ifdef ENABLE_EXTENSION_MODULE
+#include "../../../mono-extensions/mono/utils/atomic.c"
#endif
-#if defined (NEED_64BIT_CMPXCHG_FALLBACK)
+#else
gint64
InterlockedCompareExchange64(volatile gint64 *dest, gint64 exch, gint64 comp)
@@ -455,3 +455,5 @@ InterlockedCompareExchange64(volatile gint64 *dest, gint64 exch, gint64 comp)
}
#endif
+
+#endif

0 comments on commit 55d3381

Please sign in to comment.