changeset 177:bb52f7f77bf5

add main
author ikkun
date Mon, 28 Nov 2016 22:51:12 +0900
parents f0427e27dd7b
children 5077cf9bf54e
files src/parallel_execution/context.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/context.h	Mon Nov 28 18:06:50 2016 +0900
+++ b/src/parallel_execution/context.h	Mon Nov 28 22:51:12 2016 +0900
@@ -195,6 +195,11 @@
         CUstream stream;
     } cudatask;
 #endif
+    struct Main {
+        enum Code code;
+        enum Code next;
+        struct Queue* args;
+    }
     struct Task {
         enum Code code;
         struct Queue* dataGears;
@@ -214,7 +219,6 @@
     struct SingleLinkedQueue {
         struct Element* top;
         struct Element* last;
-        enum Code next;
     } SingleLinkedQueue;
     // Stack Interface
     struct Stack {