view Paper/src/iteratorInterface.h @ 14:ba98083f9853 default tip

FIX
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Fri, 27 May 2022 12:31:39 +0900
parents 14a0e409d574
children
line wrap: on
line source

typedef struct Iterator<Impl>{
        union Data* iterator;
        struct Context* task;
        int numGPU;
        __code next(...);
        __code whenWait(...);

        // method
        __code exec(Impl* iterator, struct Context* task, int numGPU, __code next(...));
        __code barrier(Impl* iterator, struct Context* task, __code next(...), __code whenWait(...));
} Iterator;