comparison 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
comparison
equal deleted inserted replaced
508:64869af1f3ef 509:62a77785cb2b
425 struct Queue* waitThreadQueue; 425 struct Queue* waitThreadQueue;
426 struct Atomic* atomic; 426 struct Atomic* atomic;
427 struct Context* lockContext; 427 struct Context* lockContext;
428 } LockImpl; 428 } LockImpl;
429 struct SpinLock { 429 struct SpinLock {
430 Int* lock; 430 volatile Int* lock;
431 struct Atomic* atomic; 431 struct Atomic* atomic;
432 struct Context* lockContext; 432 struct Context* lockContext;
433 } SpinLock; 433 } SpinLock;
434 }; // union Data end this is necessary for context generator 434 }; // union Data end this is necessary for context generator
435 typedef union Data Data; 435 typedef union Data Data;