Mercurial > hg > Members > Moririn
view src/parallel_execution/examples/boundedBuffer/initBuffer.cbc @ 516:62a77785cb2b
Bounded Loop for boundedBuffer examples
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 04 Jan 2018 19:50:46 +0900 |
parents | d8b2036c6942 |
children |
line wrap: on
line source
#include "../../../context.h" __code initBuffer(__code next(struct Buffer* output, Int* output1, ...)) { struct Buffer* output = *O_output; Int* output1 = *O_output1; goto next(output, output1, ...); } __code initBuffer_stub(struct Context* context) { struct Buffer** O_output = (struct Buffer**)&context->data[context->odg]; Int** O_output1 = (Int**)&context->data[context->odg+1]; goto initBuffer(context, context->next, O_output, O_output1); }