diff src/parallel_execution/context.h @ 113:d05b9937aa95

Change element data from Task to Data
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Tue, 07 Jun 2016 18:43:21 +0900
parents e3cba827d489
children 135472238fb7 b224aa7b80a0
line wrap: on
line diff
--- a/src/parallel_execution/context.h	Tue May 03 17:29:21 2016 +0900
+++ b/src/parallel_execution/context.h	Tue Jun 07 18:43:21 2016 +0900
@@ -134,7 +134,7 @@
         enum Code code;
         int key;
         struct Queue* waitMe;
-        struct OdsQueue* waitI;
+        struct Queue* waitI;
         int idsCount;
     } task;
     struct Queue {
@@ -143,7 +143,7 @@
         int count;
     } queue;
     struct Element {
-        struct Task* task;
+        union Data* data;
         struct Element* next;
     } element;
     struct Array {
@@ -179,13 +179,10 @@
     struct OutPutDataSegments {
         union Data **data;
     } ods;
-    struct OdsQueue {
-        struct OdsElement* first;
-        struct OdsElement* last;
-        int count;
-    } odsQueue;
-    struct OdsElement {
-        struct OutPutDataSegments* ods;
-        struct OdsElement* next;
-    } odsElement;
 };
+
+union MetaData {
+    struct Queue waitMeTasks;
+    struct Queue waitI;
+};
+