[m-rev.] diff: protect MR_thread_pinning properly
Julien Fischer
juliensf at csse.unimelb.edu.au
Sun Nov 14 04:25:01 AEDT 2010
This fixes one of the problems pointed out by Sergey Khorev.
----
Branches: main, 10.04
runtime/mercury_wrapper.c:
Fix incorrect macros protecting code that uses
MR_thread_pinning.
Julien.
Index: runtime/mercury_wrapper.c
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_wrapper.c,v
retrieving revision 1.211
diff -u -r1.211 mercury_wrapper.c
--- runtime/mercury_wrapper.c 1 Nov 2010 05:01:14 -0000 1.211
+++ runtime/mercury_wrapper.c 13 Nov 2010 17:03:15 -0000
@@ -1825,7 +1825,7 @@
break;
case MR_THREAD_PINNING:
-#if defined(MR_THREAD_SAFE) && defined(MR_LL_PARALLEL_CONJ)
+#if defined(MR_LL_PARALLEL_CONJ) && defined(MR_HAVE_SCHED_SETAFFINITY)
MR_thread_pinning = MR_TRUE;
#endif
break;
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list