Mercurial > hg > Gears > Gears
view src/parallel_execution/DebugTaskManagerImpl.h @ 1015:e6778c866876
add DebugWorker and DebugTaskManager
author | Takato Matsuoka <t.matsuoka@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Jan 2022 19:54:28 +0900 |
parents | |
children |
line wrap: on
line source
typedef struct DebugTaskManagerImpl <> impl TaskManager { int numWorker; int sendCPUWorkerIndex; int sendGPUWorkerIndex; int taskCount; pthread_mutex_t mutex; struct Queue* activeQueue; struct Worker** workers; struct Element* taskList; MemoryPtr mem; // memorylenge for Debugger StateDB state_db; int loopCounter; int cpu; int gpu; int io; int maxCPU; void (*statefunc)(struct DebugTaskManagerImpl* debugTaskManagerImpl, struct DebugWorker* debugWorker, StateDB now, StateDB next, int flag); __code next(...); } DebugTaskManagerImpl;