Mercurial > hg > Gears > GearsAgda
view src/parallel_execution/test/printIterator.cbc @ 479:b8b412a7670a
Fix segmentation fault if multithread
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 28 Dec 2017 19:51:06 +0900 |
parents | e958a409943c |
children |
line wrap: on
line source
#include "../../context.h" #include <stdio.h> __code printIterator(struct MultiDim* multiDim, __code next(...)) { printf("x: %d, y: %d, z: %d\n", multiDim->x, multiDim->y, multiDim->z); goto meta(context, next); } __code printIterator_stub(struct Context* context) { goto printIterator(context, &context->data[context->idg]->MultiDim, context->next); }