Mercurial > hg > GearsTemplate
diff src/parallel_execution/context.h @ 237:6f6cc49213c5
fix
author | mir3636 |
---|---|
date | Tue, 24 Jan 2017 09:19:58 +0900 |
parents | 865179a0a56d |
children | cc13a1608364 |
line wrap: on
line diff
--- a/src/parallel_execution/context.h Mon Jan 23 20:00:46 2017 +0900 +++ b/src/parallel_execution/context.h Tue Jan 24 09:19:58 2017 +0900 @@ -36,13 +36,13 @@ #define ALLOC(context, t) (&ALLOCATE(context, t)->t) -#define ALLOC_ARRY(context, dseg, size) ({\ +#define ALLOC_ARRAY(context, dseg, len) ({\ struct Meta* meta = (struct Meta*)context->heap;\ context->heap += sizeof(struct Meta);\ union Data* data = context->heap; \ - context->heap += sizeof(struct t)*size; \ + context->heap += sizeof(struct dseg)*len; \ meta->type = D_##dseg; \ - meta->size = size; \ + meta->size = len; \ data; }) #define GET_TYPE(dseg) ({ \ @@ -107,6 +107,7 @@ int cpu; int gpu; int io; + int maxCPU; } TaskManager; struct TaskManagerImpl { int numWorker;