Worker has now access to space
This commit is contained in:
parent
093c3cc0ea
commit
322f90b20c
|
@ -44,6 +44,7 @@ struct {
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
size_t size;
|
size_t size;
|
||||||
|
bool lock;
|
||||||
Arrow_t *array;
|
Arrow_t *array;
|
||||||
} typedef ArrowArray_t;
|
} typedef ArrowArray_t;
|
||||||
|
|
||||||
|
@ -105,6 +106,9 @@ struct Center_t {
|
||||||
struct {
|
struct {
|
||||||
pthread_t *id;
|
pthread_t *id;
|
||||||
Center_t *localWorkAreaCenter;
|
Center_t *localWorkAreaCenter;
|
||||||
|
Space_t *globalDrawingSpace;
|
||||||
|
IntArray_t *transitionsTree;
|
||||||
|
ArrowArray_t *arrowList;
|
||||||
bool pleaseStop;
|
bool pleaseStop;
|
||||||
bool terminated;
|
bool terminated;
|
||||||
int returnValue;
|
int returnValue;
|
||||||
|
|
|
@ -138,6 +138,12 @@ static void *schedulerMain(void *scheduler)
|
||||||
//printLog("Adding worker at rank %d\n", i);
|
//printLog("Adding worker at rank %d\n", i);
|
||||||
// prepare the worker for the area,
|
// prepare the worker for the area,
|
||||||
workerArray[i].localWorkAreaCenter = workArea;
|
workerArray[i].localWorkAreaCenter = workArea;
|
||||||
|
workerArray[i].globalDrawingSpace =
|
||||||
|
args->globalDrawingSpace;
|
||||||
|
workerArray[i].transitionsTree =
|
||||||
|
args->transitionsTree;
|
||||||
|
workerArray[i].arrowList =
|
||||||
|
args->arrowList;
|
||||||
// create the worker,
|
// create the worker,
|
||||||
WorkerInit(&workerArray[i]);
|
WorkerInit(&workerArray[i]);
|
||||||
// and increment worker count.
|
// and increment worker count.
|
||||||
|
|
Loading…
Reference in New Issue