[m-rev.] diff: Fix a stupid comment in my previous commit.
Paul Bone
pbone at csse.unimelb.edu.au
Thu Aug 9 00:03:35 AEST 2012
Fix a stupid comment in my previous commit.
runtime/mercury_context.m:
As above.
Index: runtime/mercury_context.c
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_context.c,v
retrieving revision 1.107
diff -u -r1.107 mercury_context.c
--- runtime/mercury_context.c 6 Aug 2012 02:11:24 -0000 1.107
+++ runtime/mercury_context.c 8 Aug 2012 12:05:03 -0000
@@ -1295,8 +1295,11 @@
victim = MR_spark_deques[(i + offset) % MR_num_threads];
if (victim != NULL) {
steal_result = MR_wsdeque_steal_top(victim, spark);
+ /*
+ ** This loop ensures that we don't run the context until it has
+ ** been saved.
+ */
while (steal_result == -1) {
- /* This is a while loop so that we can pause here */
MR_ATOMIC_PAUSE;
steal_result = MR_wsdeque_steal_top(victim, spark);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20120809/f48da7de/attachment.sig>
More information about the reviews
mailing list