changeset 449:0181b7fa5f53

Using SynchornizedQueue in data gear wait list
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Fri, 01 Dec 2017 22:47:26 +0900
parents bb29a1fe43ee
children d3d7a7d6a117
files src/parallel_execution/context.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/context.h	Thu Nov 30 15:43:12 2017 +0900
+++ b/src/parallel_execution/context.h	Fri Dec 01 22:47:26 2017 +0900
@@ -60,7 +60,7 @@
 #define ALLOCATE_DATA_GEAR(context, t) ({ \
         union Data* data = ALLOCATE(context, t); \
         Meta* meta = GET_META(data); \
-        meta->wait = createSingleLinkedQueue(context); \
+        meta->wait = createSynchronizedQueue(context); \
         data; })
 
 #define ALLOC(context, t) (&ALLOCATE(context, t)->t)