File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1722,13 +1722,14 @@ void CsdSchedulerState_new(CsdSchedulerState_t *s)
17221722void * CsdNextMessage (CsdSchedulerState_t * s ) {
17231723 void * msg ;
17241724
1725- s -> iter ++ ;
1725+ s -> iter ++ ;
17261726
17271727#if CMK_NODE_QUEUE_AVAILABLE
1728- if (1 == (s -> iter & (1 << s -> nodeGrpFreq )) // since we use nodeGrpFreq == 0 to mean
1728+ if (1 == (s -> iter & (1 << s -> nodeGrpFreq ))) // since we use nodeGrpFreq == 0 to mean
17291729 // don't check NodeQ with high priority, i
1730- // value of 1 serves well as when to check it.i but we sshould avoid "%" operator
1731- // note: s->nodeGrpFreq is raised to a power of 2
1730+ // value of 1 serves well as when to check it.
1731+ // note: s->nodeGrpFreq is raised to a power of 2, to avoid modulo operator
1732+ //note: maybe nodeGrpFreq should be a global readonly (or member of some globalParams group), to avoid "s->"
17321733 {
17331734 msg = CmiGetNonLocalNodeQ ();
17341735 if (NULL != msg ) return msg ;
You can’t perform that action at this time.
0 commit comments