comparison src/parallel_execution/SynchronizedQueue.cbc @ 496:809974b25ecb

Genrate stub for MultiDimIterator
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Mon, 01 Jan 2018 06:37:29 +0900
parents f985815ad032
children 98c5235b3ecb
comparison
equal deleted inserted replaced
495:2e7ea81e5943 496:809974b25ecb
3 #interface "Atomic.h" 3 #interface "Atomic.h"
4 4
5 #include <stdio.h> 5 #include <stdio.h>
6 6
7 /* 7 /*
8 * Nonnon-blocking queue of Paper: Simple, Fast, and Practical Non-Blocking and Blocking Concurrent Queue Algorithms(https://www.research.ibm.com/people/m/michael/podc-1996.pdf). 8 * Non-blocking queue of Paper: Simple, Fast, and Practical Non-Blocking and Blocking Concurrent Queue Algorithms(https://www.research.ibm.com/people/m/michael/podc-1996.pdf).
9 */ 9 */
10 10
11 Queue* createSynchronizedQueue(struct Context* context) { 11 Queue* createSynchronizedQueue(struct Context* context) {
12 struct Queue* queue = new Queue(); 12 struct Queue* queue = new Queue();
13 struct SynchronizedQueue* synchronizedQueue = new SynchronizedQueue(); 13 struct SynchronizedQueue* synchronizedQueue = new SynchronizedQueue();