Mercurial > hg > Members > Moririn
comparison src/parallel_execution/context.c @ 187:bacc37265386
main.o fixed
author | mir3636 |
---|---|
date | Thu, 15 Dec 2016 19:51:40 +0900 |
parents | dbc064c26b98 |
children | 865179a0a56d |
comparison
equal
deleted
inserted
replaced
186:dbc064c26b98 | 187:bacc37265386 |
---|---|
11 context->code = (__code(**) (struct Context*)) NEWN(ALLOCATE_SIZE, void*); | 11 context->code = (__code(**) (struct Context*)) NEWN(ALLOCATE_SIZE, void*); |
12 context->data = NEWN(ALLOCATE_SIZE, union Data*); | 12 context->data = NEWN(ALLOCATE_SIZE, union Data*); |
13 context->heapStart = NEWN(context->heapLimit, char); | 13 context->heapStart = NEWN(context->heapLimit, char); |
14 context->heap = context->heapStart; | 14 context->heap = context->heapStart; |
15 | 15 |
16 context->codeNum = Exit; | 16 // context->codeNum = Exit; |
17 | 17 |
18 #include "c/codeGearInit.c" | 18 #include "c/codeGearInit.c" |
19 | 19 |
20 #include "c/dataGearInit.c" | 20 #include "c/dataGearInit.c" |
21 | 21 |
22 context->data[D_ActiveQueue] = createSynchronizedQueue(context); | 22 // context->data[D_ActiveQueue] = createSynchronizedQueue(context); |
23 context->data[D_WaitQueue] = createSynchronizedQueue(context); | 23 // context->data[D_WaitQueue] = createSynchronizedQueue(context); |
24 | 24 |
25 context->dataNum = D_Queue; | 25 context->dataNum = D_Queue; |
26 } | 26 } |