comparison src/parallel_execution/context.h @ 361:a2c01ab30ea2

Add synchronized queue of paper
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Wed, 28 Jun 2017 05:48:39 +0900
parents b07078bd1f2c
children d93dceb84c75
comparison
equal deleted inserted replaced
355:45afe5d70956 361:a2c01ab30ea2
192 struct Element* last; 192 struct Element* last;
193 } SingleLinkedQueue; 193 } SingleLinkedQueue;
194 struct SynchronizedQueue { 194 struct SynchronizedQueue {
195 struct Element* top; 195 struct Element* top;
196 struct Element* last; 196 struct Element* last;
197 struct Semaphore* queueCount;
198 } SynchronizedQueue; 197 } SynchronizedQueue;
199 // Stack Interface 198 // Stack Interface
200 struct Stack { 199 struct Stack {
201 union Data* stack; 200 union Data* stack;
202 union Data* data; 201 union Data* data;