Mercurial > hg > GearsTemplate
diff src/parallel_execution/context.h @ 147:f2275f5777f4
add treeRotate data
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 10 Nov 2016 10:35:48 +0900 |
parents | cc071cf1ba85 |
children | 473b7d990a1f |
line wrap: on
line diff
--- a/src/parallel_execution/context.h Thu Nov 10 09:27:01 2016 +0900 +++ b/src/parallel_execution/context.h Thu Nov 10 10:35:48 2016 +0900 @@ -117,6 +117,7 @@ Stack, Tree, Traverse, + RotateTree, Node, LoopCounter, Time, @@ -217,7 +218,6 @@ } tree; struct Traverse { enum Code next; - enum Code rotateNext; struct Node* current; // reading node of original tree struct Node* previous; // parent of reading node of original tree struct Node* newNode; // writing node of new tree @@ -226,6 +226,11 @@ struct Stack* nodeStack; int result; } traverse; + struct RotateTree { + enum Code next; + struct Traverse* traverse; + struct Tree* tree; + } rotateTree; struct Node { int key; // comparable data segment union Data* value; @@ -246,6 +251,8 @@ } ods; }; +// typedef struct RotateTree D_RotateTree; + union MetaData { struct Queue waitMeTasks; struct Queue waitI;