From 93adea1fa88900302d682d5e8d45f3d1a0b5a8e8 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 16 Jun 2021 12:17:00 +0200 Subject: [PATCH] arrowList is majored --- src/scheduler.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/scheduler.c b/src/scheduler.c index b66a2b3..437bcfa 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -45,7 +45,7 @@ pthread_t *SchedInit(Scheduler_t *scheduler) // Scheduler area finder function // // -------------------------------------------------------------------------- // static Center_t *findWorkArea(Center_t *centersList, Arrow_t *electedArrow, - int ruleRadius, size_t spaceSize) + int ruleRadius, size_t spaceSize, int xmax, int ymax, int zmax) { register Center_t *currentCenter, *newCenter; @@ -120,7 +120,11 @@ static void *schedulerMain(void *scheduler) // Find a local area workArea = findWorkArea(centersList, electedArrow, args->ruleRadius, - args->globalDrawingSpace->size); + args->globalDrawingSpace->size, + args->arrowList->xmax, + args->arrowList->ymax, + args->arrowList->zmax + ); // If a free area exists, if (workArea) {