Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.h @ 29:0e008278fe3c
Works Sequentially -- took out all threads and debugged -- works
| author | Me |
|---|---|
| date | Wed, 28 Jul 2010 13:12:10 -0700 |
| parents | 8b9e4c333fe6 |
| children | c8823e0bb2b4 |
comparison
equal
deleted
inserted
replaced
| 9:c5f7bc4ec691 | 10:4332e85b29bf |
|---|---|
| 17 //This value is the number of hardware threads in the shared memory | 17 //This value is the number of hardware threads in the shared memory |
| 18 // machine | 18 // machine |
| 19 #define NUM_CORES 4 | 19 #define NUM_CORES 4 |
| 20 | 20 |
| 21 // make double-num-cores scheduling slots, plus extra for master | 21 // make double-num-cores scheduling slots, plus extra for master |
| 22 #define NUM_SCHED_SLOTS (2 * NUM_CORES + 1) | 22 //#define NUM_SCHED_SLOTS (2 * NUM_CORES + 1) |
| 23 #define NUM_SCHED_SLOTS 3 | |
| 23 | 24 |
| 24 //128K stack.. compromise, want 10K virtPr | 25 //128K stack.. compromise, want 10K virtPr |
| 25 #define VIRT_PROCR_STACK_SIZE 0x10000 | 26 #define VIRT_PROCR_STACK_SIZE 0x10000 |
| 26 | 27 |
| 27 #define SUCCESS 0 | 28 #define SUCCESS 0 |
| 115 VirtProcr *masterVirtPr; | 116 VirtProcr *masterVirtPr; |
| 116 | 117 |
| 117 void *semanticEnv; | 118 void *semanticEnv; |
| 118 void *OSEventStruc; //for future, when add I/O to BLIS | 119 void *OSEventStruc; //for future, when add I/O to BLIS |
| 119 | 120 |
| 120 void *coreLoopShutDownPt; //addr to jump to to shut down a coreLoop | 121 void *coreLoopEndPt; //addr to jump to to shut down a coreLoop |
| 121 | 122 |
| 122 int setupComplete; | 123 int setupComplete; |
| 123 } | 124 } |
| 124 MasterEnv; | 125 MasterEnv; |
| 125 | 126 |
| 201 | 202 |
| 202 void | 203 void |
| 203 VMS__dissipate_procr( VirtProcr *prToDissipate ); | 204 VMS__dissipate_procr( VirtProcr *prToDissipate ); |
| 204 | 205 |
| 205 void | 206 void |
| 206 VMS__shutdown(); | 207 VMS__handle_dissipate_reqst( VirtProcr *procrToDissipate ); |
| 208 | |
| 209 void | |
| 210 VMS__cleanup_after_shutdown(); | |
| 207 | 211 |
| 208 //============================= Statistics ================================== | 212 //============================= Statistics ================================== |
| 209 | 213 |
| 210 typedef unsigned long long TSCount; | 214 typedef unsigned long long TSCount; |
| 211 | 215 |
