diff src/parallel_execution/context.h @ 509:62a77785cb2b

Bounded Loop for boundedBuffer examples
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Thu, 04 Jan 2018 19:50:46 +0900
parents a7127917c736
children 0b408dbfc85b
line wrap: on
line diff
--- a/src/parallel_execution/context.h	Wed Jan 03 17:34:24 2018 +0900
+++ b/src/parallel_execution/context.h	Thu Jan 04 19:50:46 2018 +0900
@@ -427,7 +427,7 @@
         struct Context* lockContext;
     } LockImpl;
     struct SpinLock {
-        Int* lock;
+        volatile Int* lock;
         struct Atomic* atomic;
         struct Context* lockContext;
     } SpinLock;