[m-rev.] diff: fix definition of atomic ops in high-level .par grades
Julien Fischer
jfischer at opturion.com
Wed Aug 13 14:36:12 AEST 2014
Define atomic ops in high-level .par grades.
runtime/mercury_atomic_ops.c:
Fix a mismatch between the macros protecting the declarations and
the definitions of the atomic ops.
Julien.
diff --git a/runtime/mercury_atomic_ops.c b/runtime/mercury_atomic_ops.c
index c39f3be..5f44783 100644
--- a/runtime/mercury_atomic_ops.c
+++ b/runtime/mercury_atomic_ops.c
@@ -16,7 +16,7 @@
/*---------------------------------------------------------------------------*/
-#if defined(MR_LL_PARALLEL_CONJ)
+#if defined(MR_THREAD_SAFE)
/*
** Definitions for the atomic functions declared `extern inline'.
@@ -132,7 +132,7 @@ MR_OUTLINE_DEFN(
}
)
-#endif /* MR_LL_PARALLEL_CONJ */
+#endif /* MR_THREAD_SAFE */
/*---------------------------------------------------------------------------*/
More information about the reviews
mailing list