view src/parallel_execution/MCTaskManagerImpl.h @ 921:31ea8f75e9e6

add statefunc
author ikkun <ikkun@cr.ie.u-ryukyu.ac.jp>
date Fri, 29 Jan 2021 18:08:13 +0900
parents 26e3d0226cc6
children 917fb0cc6d6b
line wrap: on
line source

typedef struct MCTaskManagerImpl <> 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; // modelchecking memorylenge
  StateDB state_db;
  StateNode st;
  int loopCounter;
  int cpu;
  int gpu;
  int io;
  int visit;
  int maxCPU;
  void (*statefunc)(struct MCTaskManagerImpl* mcti, StateDB now,StateDB next);
  __code next(...);
} MCTaskManagerImpl;