diff VSs.h @ 6:1780f6b00e3d

Not working -- checkpoint while making explicitly created VPs work, and DKU pattern
author Sean Halle <seanhalle@yahoo.com>
date Wed, 01 Aug 2012 00:18:53 -0700
parents 8188c5b4bfd7
children 3999b8429ddd
line diff
     1.1 --- a/VSs.h	Fri Jul 13 17:35:49 2012 +0200
     1.2 +++ b/VSs.h	Wed Aug 01 00:18:53 2012 -0700
     1.3 @@ -61,9 +61,7 @@
     1.4   }
     1.5  VSsPointerEntry;
     1.6  
     1.7 -typedef struct _VSsTaskStub VSsTaskStub;
     1.8 -
     1.9 -struct _VSsTaskStub
    1.10 +typedef struct
    1.11   {
    1.12     void       **args; //ctld args must come first, as ptrs
    1.13     VSsTaskType *taskType;
    1.14 @@ -74,17 +72,19 @@
    1.15     void*        parent;
    1.16     bool32       parentIsTask;
    1.17     int32        numChildTasks;
    1.18 -   bool32         isWaiting;
    1.19 +   bool32       isWaiting;
    1.20   }
    1.21 -;
    1.22 +VSsTaskStub;
    1.23  
    1.24 -typedef struct {
    1.25 +typedef struct 
    1.26 + {
    1.27      void* parent;
    1.28      bool32       parentIsTask;
    1.29      int32        numChildTasks;
    1.30      bool32       isWaiting;
    1.31     SlaveVP     *slaveAssignedTo;    
    1.32 -} VSsThreadInfo;
    1.33 + }
    1.34 +VSsThreadInfo;
    1.35  
    1.36  typedef struct
    1.37   {
    1.38 @@ -185,11 +185,13 @@
    1.39  
    1.40  typedef struct
    1.41   {
    1.42 -   PrivQueueStruc **readyVPQs;
    1.43 -   PrivQueueStruc  *taskReadyQ;  //Q: shared or local?
    1.44 +   PrivQueueStruc **slavesReadyToResumeQ; //Shared (slaves not pinned)
    1.45 +   PrivQueueStruc **extraTaskSlvQ;     //Shared
    1.46 +   PrivQueueStruc  *taskReadyQ;        //Shared (tasks not pinned)
    1.47 +   SlaveVP         *currTaskSlvs[NUM_CORES][NUM_ANIM_SLOTS];
    1.48     HashTable       *argPtrHashTbl;
    1.49     HashTable       *commHashTbl;
    1.50 -   int32            numSlaveVP;
    1.51 +   int32            numAdditionalSlvs;
    1.52     int32            nextCoreToGetNewSlv;
    1.53     int32            primitiveStartTime;
    1.54