Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/target-cpu/fragments/seq-run-nobsp.in
ViewVC logotype

Diff of /branches/vis15/src/compiler/target-cpu/fragments/seq-run-nobsp.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4579, Sat Sep 17 20:49:45 2016 UTC revision 4580, Sat Sep 17 20:51:34 2016 UTC
# Line 40  Line 40 
40      uint32_t maxSteps = 0;      uint32_t maxSteps = 0;
41      for (auto ix = this->_strands.begin_active();      for (auto ix = this->_strands.begin_active();
42           ix != this->_strands.end_active();           ix != this->_strands.end_active();
43           ix = this->_strands.next_active(ix))           )
44      {      {
45          diderot::strand_status sts = this->_strands.status(ix);          diderot::strand_status sts = this->_strands.status(ix);
46          uint32_t nSteps = 0;          uint32_t nSteps = 0;
# Line 51  Line 51 
51          switch (sts) {          switch (sts) {
52            case diderot::kStabilize:            case diderot::kStabilize:
53            // stabilize the strand's state.            // stabilize the strand's state.
54              this->_strands.strand_stabilize (@STABILIZE_ARGS_IN_WRLD@ix);              ix = this->_strands.strand_stabilize (@STABILIZE_ARGS_IN_WRLD@ix);
55              break;              break;
56  #ifdef DIDEROT_HAS_STRAND_DIE  #ifdef DIDEROT_HAS_STRAND_DIE
57            case diderot::kDie:            case diderot::kDie:
58              this->_strands.kill (ix);              ix = this->_strands.kill (ix);
59              break;              break;
60  #endif  #endif
61            default:            default:
62              assert (sts == this->_strands.status(ix));              assert (sts == this->_strands.status(ix));
63                ix = this->_strands.next_active(ix);
64              break;              break;
65          }          }
66          if (maxSteps < nSteps) maxSteps = nSteps;          if (maxSteps < nSteps) maxSteps = nSteps;

Legend:
Removed from v.4579  
changed lines
  Added in v.4580

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0