Mercurial > hg > Members > Moririn
comparison src/parallel_execution/TimeImpl.cbc @ 447:57132ef16009
Remove ALLOCATE_DATA_GEAR from par goto code gear arguments
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 30 Nov 2017 15:42:19 +0900 |
parents | f1d111e293c4 |
children | 8d7e5d48cad3 |
comparison
equal
deleted
inserted
replaced
444:0c024ea61601 | 447:57132ef16009 |
---|---|
2 #include <sys/time.h> | 2 #include <sys/time.h> |
3 | 3 |
4 #include "../context.h" | 4 #include "../context.h" |
5 | 5 |
6 Time* createTimeImpl(struct Context* context) { | 6 Time* createTimeImpl(struct Context* context) { |
7 struct Time* time = &ALLOCATE_DATA_GEAR(context, Time)->Time; | 7 struct Time* time = new Time(); |
8 struct TimeImpl* timeImpl = new TimeImpl(); | 8 struct TimeImpl* timeImpl = new TimeImpl(); |
9 time->time = (union Data*)timeImpl; | 9 time->time = (union Data*)timeImpl; |
10 time->start = C_startTime; | 10 time->start = C_startTime; |
11 time->end = C_endTime; | 11 time->end = C_endTime; |
12 return time; | 12 return time; |