Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.h @ 228:125f0f90a0d3
integrating holistic model in common ancestor - not finished yet
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Thu, 15 Mar 2012 18:28:29 +0100 |
| parents | 5c475c4b7b49 |
| children | 0ee1a3c8972d |
comparison
equal
deleted
inserted
replaced
| 109:af7f0eae95a8 | 110:dd2f98a39eb8 |
|---|---|
| 47 typedef SlaveVP *(*SlaveAssigner) ( void *, int, SchedSlot *); //semEnv, coreIdx, slot for HW info | 47 typedef SlaveVP *(*SlaveAssigner) ( void *, int, SchedSlot *); //semEnv, coreIdx, slot for HW info |
| 48 typedef void (*RequestHandler) ( SlaveVP *, void * ); //prWReqst, semEnv | 48 typedef void (*RequestHandler) ( SlaveVP *, void * ); //prWReqst, semEnv |
| 49 typedef void (*TopLevelFnPtr) ( void *, SlaveVP * ); //initData, animSlv | 49 typedef void (*TopLevelFnPtr) ( void *, SlaveVP * ); //initData, animSlv |
| 50 typedef void TopLevelFn ( void *, SlaveVP * ); //initData, animSlv | 50 typedef void TopLevelFn ( void *, SlaveVP * ); //initData, animSlv |
| 51 typedef void (*ResumeSlvFnPtr) ( SlaveVP *, void * ); | 51 typedef void (*ResumeSlvFnPtr) ( SlaveVP *, void * ); |
| 52 //=========== MEASUREMENT STUFF ========== | |
| 53 MEAS__Insert_Counter_Handler | |
| 54 //======================================== | |
| 52 | 55 |
| 53 //============================ HW Dependent Fns ================================ | 56 //============================ HW Dependent Fns ================================ |
| 54 | 57 |
| 55 #include "Hardware_Dependent/VMS__HW_measurement.h" | 58 #include "Hardware_Dependent/VMS__HW_measurement.h" |
| 56 #include "Hardware_Dependent/VMS__primitives.h" | 59 #include "Hardware_Dependent/VMS__primitives.h" |
| 103 int needsSlaveAssigned; | 106 int needsSlaveAssigned; |
| 104 SlaveVP *slaveAssignedToSlot; | 107 SlaveVP *slaveAssignedToSlot; |
| 105 }; | 108 }; |
| 106 //SchedSlot | 109 //SchedSlot |
| 107 | 110 |
| 111 enum VPtype { | |
| 112 Slave = 1, //default | |
| 113 Master, | |
| 114 Shutdown | |
| 115 }; | |
| 116 | |
| 108 /*WARNING: re-arranging this data structure could cause Slv switching | 117 /*WARNING: re-arranging this data structure could cause Slv switching |
| 109 * assembly code to fail -- hard-codes offsets of fields | 118 * assembly code to fail -- hard-codes offsets of fields |
| 110 */ | 119 */ |
| 111 struct _SlaveVP | 120 struct _SlaveVP |
| 112 { int slaveID; //each slave given a unique ID | 121 { int slaveID; //each slave given a unique ID |
| 128 | 137 |
| 129 //=========== MEASUREMENT STUFF ========== | 138 //=========== MEASUREMENT STUFF ========== |
| 130 MEAS__Insert_Meas_Fields_into_Slave; | 139 MEAS__Insert_Meas_Fields_into_Slave; |
| 131 //======================================== | 140 //======================================== |
| 132 | 141 |
| 133 float64 createPtInSecs; //have space but don't use on some configs | 142 enum VPtype type; |
| 143 int numTimesAssigned; | |
| 144 | |
| 145 float64 createPtInSecs; //have space but don't use on some configs | |
| 134 }; | 146 }; |
| 135 //SlaveVP | 147 //SlaveVP |
| 136 | 148 |
| 137 | 149 |
| 138 /*WARNING: re-arranging this data structure could cause Slv-switching | 150 /*WARNING: re-arranging this data structure could cause Slv-switching |
| 175 MEAS__Insert_Master_Meas_Fields_into_MasterEnv; | 187 MEAS__Insert_Master_Meas_Fields_into_MasterEnv; |
| 176 MEAS__Insert_Master_Lock_Meas_Fields_into_MasterEnv; | 188 MEAS__Insert_Master_Lock_Meas_Fields_into_MasterEnv; |
| 177 MEAS__Insert_Malloc_Meas_Fields_into_MasterEnv; | 189 MEAS__Insert_Malloc_Meas_Fields_into_MasterEnv; |
| 178 MEAS__Insert_Plugin_Meas_Fields_into_MasterEnv; | 190 MEAS__Insert_Plugin_Meas_Fields_into_MasterEnv; |
| 179 MEAS__Insert_System_Meas_Fields_into_MasterEnv; | 191 MEAS__Insert_System_Meas_Fields_into_MasterEnv; |
| 192 MEAS__Insert_Counter_Meas_Fields_into_MasterEnv; | |
| 180 //========================================== | 193 //========================================== |
| 181 } | 194 } |
| 182 MasterEnv; | 195 MasterEnv; |
| 183 | 196 |
| 184 //========================= Extra Stuff Data Strucs ======================= | 197 //========================= Extra Stuff Data Strucs ======================= |
| 236 VMS_SS__init(); | 249 VMS_SS__init(); |
| 237 | 250 |
| 238 void | 251 void |
| 239 VMS_SS__start_the_work_then_wait_until_done(); | 252 VMS_SS__start_the_work_then_wait_until_done(); |
| 240 | 253 |
| 254 SlaveVP* | |
| 255 VMS_SS__create_shutdown_slave(); | |
| 256 | |
| 241 void | 257 void |
| 242 VMS_SS__shutdown(); | 258 VMS_SS__shutdown(); |
| 243 | 259 |
| 244 void | 260 void |
| 245 VMS_SS__cleanup_at_end_of_shutdown(); | 261 VMS_SS__cleanup_at_end_of_shutdown(); |
