# HG changeset patch # User Nina Engelhardt # Date 1359735399 -3600 # Node ID 68212347d1d801528aab3e046bccac3d2d36752c # Parent 104d0b27de1281633be4c1039b9c79c2c4040a4a count active VPs for deadlock detection diff -r 104d0b27de12 -r 68212347d1d8 AnimationMaster.c --- a/AnimationMaster.c Thu Dec 27 12:19:59 2012 +0100 +++ b/AnimationMaster.c Fri Feb 01 17:16:39 2013 +0100 @@ -167,6 +167,8 @@ //process the requests made by the slave (held inside slave struc) (*requestHandler)( currSlot->slaveAssignedToSlot, semanticEnv ); + masterEnv->numAnimatedSlaves--; + HOLISTIC__Record_AppResponder_end; MEAS__endReqHdlr; } @@ -183,7 +185,7 @@ assignedSlaveVP->animSlotAssignedTo = currSlot; currSlot->needsSlaveAssigned = FALSE; numSlotsFilled += 1; - + masterEnv->numAnimatedSlaves++; HOLISTIC__Record_Assigner_end; } } diff -r 104d0b27de12 -r 68212347d1d8 VMS.h --- a/VMS.h Thu Dec 27 12:19:59 2012 +0100 +++ b/VMS.h Fri Feb 01 17:16:39 2013 +0100 @@ -181,6 +181,7 @@ //Slave creation int32 numSlavesCreated; //gives ordering to processor creation int32 numSlavesAlive; //used to detect fail-safe shutdown + int32 numAnimatedSlaves; //Initialization related int32 setupComplete; //use while starting up coreCtlr