Mercurial > hg > GearsTemplate
diff src/parallel_execution/context.h @ 149:63ab65b28466
Add Gearef macro
author | one |
---|---|
date | Thu, 10 Nov 2016 20:37:52 +0900 |
parents | 473b7d990a1f |
children | 8c687b8fabf2 7164f59660d4 |
line wrap: on
line diff
--- a/src/parallel_execution/context.h Thu Nov 10 12:07:53 2016 +0900 +++ b/src/parallel_execution/context.h Thu Nov 10 20:37:52 2016 +0900 @@ -34,6 +34,7 @@ struct Meta* meta = (struct Meta*)(((void*)dseg) - sizeof(struct Meta));\ meta->type; }) +#define Gearef(context, t) (&(context)->data[D_##t]->t) enum Code { C_code1, C_code2, @@ -147,7 +148,7 @@ struct Time { enum Code next; double time; - } time; + } Time; struct LoopCounter { int i; } loopCounter; @@ -225,7 +226,7 @@ struct Node* grandparent; struct Stack* nodeStack; int result; - } traverse; + } Traverse; struct RotateTree { enum Code next; struct Traverse* traverse; @@ -252,6 +253,7 @@ }; // typedef struct RotateTree D_RotateTree; +typedef struct Time Time; union MetaData { struct Queue waitMeTasks;