view src/parallel_execution/Iterator.cbc @ 374:fb50cf8aa615

Add Iterator Interface
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Tue, 18 Jul 2017 15:14:08 +0900
parents
children ad44fdb11433
line wrap: on
line source

typedef struct Iterator<Impl>{
        union Data* iterator;
        __code exec(Impl* iterator, __code next(...));
        __code barrier(Impl* iterator, __code next(...));
        __code whenWait(...);
        __code next(...);
} Iterator;