view src/parallel_execution/Executor.h @ 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 6b71cf5b1c22
children
line wrap: on
line source

typedef struct Executor<Type, Impl>{
    Type* Executor;
    struct Context* task;
    __code read(Impl* executor, struct Context* task, __code next(...));
    __code exec(Impl* executor, struct Context* task, __code next(...));
    __code write(Impl* executor, struct Context* task, __code next(...));
}