Mercurial > hg > Members > innparusu > Gears
diff src/parallel_execution/context.h @ 95:3e28ee215c0e
modify twice, use OSAtomiceCompareAndSwap
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 29 Jan 2016 05:36:52 +0900 |
parents | 851da1107223 |
children | d400948dbbab |
line wrap: on
line diff
--- a/src/parallel_execution/context.h Tue Jan 26 08:50:30 2016 +0900 +++ b/src/parallel_execution/context.h Fri Jan 29 05:36:52 2016 +0900 @@ -2,7 +2,7 @@ #include <pthread.h> #include "stack.h" -#define ALLOCATE_SIZE 100000 +#define ALLOCATE_SIZE 20000000 enum Code { Code1, @@ -57,6 +57,8 @@ PutQueue4, GetQueue, Twice, + StartTime, + EndTime, Exit, }; @@ -73,6 +75,7 @@ Traverse, Node, LoopCounter, + Time, Element, ActiveQueue, }; @@ -93,6 +96,9 @@ }; union Data { + struct Time { + double time; + } time; struct LoopCounter { int i; } loopCounter; @@ -115,6 +121,7 @@ } element; struct Array { int index; + int prefix; int* array; } array; struct Tree {