Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff MasterLoop.c @ 29:0e008278fe3c
Works Sequentially -- took out all threads and debugged -- works
| author | Me |
|---|---|
| date | Wed, 28 Jul 2010 13:12:10 -0700 |
| parents | 5a2068cbc28b |
| children | c8823e0bb2b4 |
line diff
1.1 --- a/MasterLoop.c Mon Jul 26 16:42:59 2010 -0700 1.2 +++ b/MasterLoop.c Wed Jul 28 13:12:10 2010 -0700 1.3 @@ -133,9 +133,10 @@ 1.4 currSlot->needsProcrAssigned = FALSE; 1.5 1.6 filledSlots[ numFilled ] = currSlot; 1.7 - numFilled += 1; 1.8 1.9 writeVMSQ( schedVirtPr, workQ ); 1.10 + numFilled += 1; 1.11 + 1.12 if( numFilled == masterEnv->numToPrecede ) 1.13 { 1.14 writeVMSQ( masterEnv->masterVirtPr, workQ ); 1.15 @@ -158,7 +159,7 @@ 1.16 //TODO: look at dynamic behavior -- time-average numToPrecede or something 1.17 if( numFilled < NUM_CORES - 1 ) 1.18 { 1.19 - masterEnv->numToPrecede = 0; 1.20 + masterEnv->numToPrecede = 1; 1.21 } 1.22 else 1.23 { masterEnv->numToPrecede = numFilled - NUM_CORES + 1;
