comparison VSs.c @ 25:5bc52d3eae7d

new brch -- ML_dev -- changing VMS to style allows mix and match of langlets
author Sean Halle <seanhalle@yahoo.com>
date Mon, 03 Sep 2012 03:26:12 -0700
parents 2bf83f932705
children 1ffd5df22df9 a60399b62614
comparison
equal deleted inserted replaced
12:ba1be0a3f4b0 13:f8e7ee53c19a
189 VSsSemData *semData; 189 VSsSemData *semData;
190 190
191 //Hook up the semantic layer's plug-ins to the Master virt procr 191 //Hook up the semantic layer's plug-ins to the Master virt procr
192 _VMSMasterEnv->requestHandler = &VSs__Request_Handler; 192 _VMSMasterEnv->requestHandler = &VSs__Request_Handler;
193 _VMSMasterEnv->slaveAssigner = &VSs__assign_slaveVP_to_slot; 193 _VMSMasterEnv->slaveAssigner = &VSs__assign_slaveVP_to_slot;
194 #ifdef HOLISTIC__TURN_ON_PERF_COUNTERS
195 _VMSMasterEnv->counterHandler = &VSs__counter_handler;
196 #endif
197 194
198 //create the semantic layer's environment (all its data) and add to 195 //create the semantic layer's environment (all its data) and add to
199 // the master environment 196 // the master environment
200 semanticEnv = VMS_int__malloc( sizeof( VSsSemEnv ) ); 197 semanticEnv = VMS_int__malloc( sizeof( VSsSemEnv ) );
201 _VMSMasterEnv->semanticEnv = semanticEnv; 198 _VMSMasterEnv->semanticEnv = semanticEnv;
202 199
203 #ifdef HOLISTIC__TURN_ON_PERF_COUNTERS 200 #ifdef HOLISTIC__TURN_ON_PERF_COUNTERS
201 _VMSMasterEnv->counterHandler = &VSs__counter_handler;
204 VSs__init_counter_data_structs(); 202 VSs__init_counter_data_structs();
205 #endif 203 #endif
206 204
207 semanticEnv->shutdownInitiated = FALSE; 205 semanticEnv->shutdownInitiated = FALSE;
208 semanticEnv->coreIsDone = VMS_int__malloc( NUM_CORES * sizeof( bool32 ) ); 206 semanticEnv->coreIsDone = VMS_int__malloc( NUM_CORES * sizeof( bool32 ) );
253 semanticEnv->fnSingletons[i].waitQ = makeVMSQ(); 251 semanticEnv->fnSingletons[i].waitQ = makeVMSQ();
254 semanticEnv->transactionStrucs[i].waitingVPQ = makeVMSQ(); 252 semanticEnv->transactionStrucs[i].waitingVPQ = makeVMSQ();
255 } 253 }
256 254
257 semanticEnv->numLiveExtraTaskSlvs = 0; //must be last 255 semanticEnv->numLiveExtraTaskSlvs = 0; //must be last
258 semanticEnv->numLiveThreadSlvs = 1; //must be last, count the seed 256 semanticEnv->numLiveThreadSlvs = 1; //must be last, counts the seed
259 257
260 #ifdef HOLISTIC__TURN_ON_OBSERVE_UCC 258 #ifdef HOLISTIC__TURN_ON_OBSERVE_UCC
261 semanticEnv->unitList = makeListOfArrays(sizeof(Unit),128); 259 semanticEnv->unitList = makeListOfArrays(sizeof(Unit),128);
262 semanticEnv->ctlDependenciesList = makeListOfArrays(sizeof(Dependency),128); 260 semanticEnv->ctlDependenciesList = makeListOfArrays(sizeof(Dependency),128);
263 semanticEnv->commDependenciesList = makeListOfArrays(sizeof(Dependency),128); 261 semanticEnv->commDependenciesList = makeListOfArrays(sizeof(Dependency),128);