view src/parallel_execution/Worker.h @ 575:3e3158198cb5

bug fix...
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Mon, 25 Nov 2019 17:03:33 +0900
parents b92898d3a630
children
line wrap: on
line source

typedef struct Worker<Impl>{
    union Data* worker;
    struct Queue* tasks;
    struct Context* task;
    pthread_t thread;
    struct TaskManager* taskManager;
    __code taskReceive(Impl* worker, struct Queue* tasks);
    __code shutdown(Impl* worker);
    __code next(...);
} Worker;