Mercurial > hg > Papers > 2023 > soto-master
view Paper/src/context1.c @ 1:a72446879486
Init paper
author | soto <soto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Jan 2023 20:28:50 +0900 |
parents | |
children |
line wrap: on
line source
enum Code { C_cs1, C_cs2, }; enum DataType { D_Meta, D_TaskManager, ... }; struct Context { enum Code next; struct Worker* worker; struct TaskManager* taskManager; int codeNum; __code (**code) (struct Context*); void* heapStart; void* heap; long heapLimit; int dataNum; int idgCount; int idg; int maxIdg; int odg; int maxOdg; int workerId; int gpu; struct Context* task; struct Queue* tasks; union Data **data; }; union Data { struct Meta { enum DataType type; long size; struct Queue* wait; } meta; struct Task { enum Code code; struct Queue* dataGears; int idsCount; } Task; ... };