Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.h @ 232:421bde2a07d7
REMOVED work-stealing, and all references to gates
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Thu, 15 Mar 2012 20:47:54 -0700 |
| parents | 88fd85921d7f |
| children | a0ac58d8201c |
comparison
equal
deleted
inserted
replaced
| 112:9448f99fb422 | 113:6e60a66eef42 |
|---|---|
| 39 typedef struct _SchedSlot SchedSlot; | 39 typedef struct _SchedSlot SchedSlot; |
| 40 typedef struct _VMSReqst VMSReqst; | 40 typedef struct _VMSReqst VMSReqst; |
| 41 typedef struct _SlaveVP SlaveVP; | 41 typedef struct _SlaveVP SlaveVP; |
| 42 typedef struct _MasterVP MasterVP; | 42 typedef struct _MasterVP MasterVP; |
| 43 typedef struct _IntervalProbe IntervalProbe; | 43 typedef struct _IntervalProbe IntervalProbe; |
| 44 typedef struct _GateStruc GateStruc; | |
| 45 | 44 |
| 46 | 45 |
| 47 typedef SlaveVP *(*SlaveAssigner) ( void *, SchedSlot*); //semEnv, slot for HW info | 46 typedef SlaveVP *(*SlaveAssigner) ( void *, SchedSlot*); //semEnv, slot for HW info |
| 48 typedef void (*RequestHandler) ( SlaveVP *, void * ); //prWReqst, semEnv | 47 typedef void (*RequestHandler) ( SlaveVP *, void * ); //prWReqst, semEnv |
| 49 typedef void (*TopLevelFnPtr) ( void *, SlaveVP * ); //initData, animSlv | 48 typedef void (*TopLevelFnPtr) ( void *, SlaveVP * ); //initData, animSlv |
| 169 int32 setupComplete; //use while starting up coreCtlr | 168 int32 setupComplete; //use while starting up coreCtlr |
| 170 | 169 |
| 171 //Memory management related | 170 //Memory management related |
| 172 MallocArrays *freeLists; | 171 MallocArrays *freeLists; |
| 173 int32 amtOfOutstandingMem;//total currently allocated | 172 int32 amtOfOutstandingMem;//total currently allocated |
| 174 | 173 |
| 175 //Work-stealing related | |
| 176 GateStruc *workStealingGates[ NUM_CORES ]; //concurrent work-steal | |
| 177 int32 workStealingLock; | |
| 178 | |
| 179 | |
| 180 //=========== MEASUREMENT STUFF ============= | 174 //=========== MEASUREMENT STUFF ============= |
| 181 IntervalProbe **intervalProbes; | 175 IntervalProbe **intervalProbes; |
| 182 PrivDynArrayInfo *dynIntervalProbesInfo; | 176 PrivDynArrayInfo *dynIntervalProbesInfo; |
| 183 HashTable *probeNameHashTbl; | 177 HashTable *probeNameHashTbl; |
| 184 int32 masterCreateProbeID; | 178 int32 masterCreateProbeID; |
| 200 { | 194 { |
| 201 | 195 |
| 202 } | 196 } |
| 203 VMSExcp; | 197 VMSExcp; |
| 204 | 198 |
| 205 struct _GateStruc | |
| 206 { | |
| 207 int32 gateClosed; | |
| 208 int32 preGateProgress; | |
| 209 int32 waitProgress; | |
| 210 int32 exitProgress; | |
| 211 }; | |
| 212 //GateStruc | |
| 213 | |
| 214 //======================= OS Thread related =============================== | 199 //======================= OS Thread related =============================== |
| 215 | 200 |
| 216 void * coreController( void *paramsIn ); //standard PThreads fn prototype | 201 void * coreController( void *paramsIn ); //standard PThreads fn prototype |
| 217 void * coreCtlr_Seq( void *paramsIn ); //standard PThreads fn prototype | 202 void * coreCtlr_Seq( void *paramsIn ); //standard PThreads fn prototype |
| 218 void animationMaster( void *initData, SlaveVP *masterVP ); | 203 void animationMaster( void *initData, SlaveVP *masterVP ); |
