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

SCM Repository

[diderot] Diff of /branches/lamont/src/compiler/c-target/fragments/seq-run.in
ViewVC logotype

Diff of /branches/lamont/src/compiler/c-target/fragments/seq-run.in

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

revision 1806, Sat Apr 7 00:02:25 2012 UTC revision 1807, Sat Apr 7 12:00:48 2012 UTC
# Line 20  Line 20 
20          for (int i = 0;  i < wrld->numStrands;  i++) {          for (int i = 0;  i < wrld->numStrands;  i++) {
21              if (! wrld->status[i]) {              if (! wrld->status[i]) {
22                  nUpdates++;                  nUpdates++;
23                  StrandStatus_t sts = strand->update(glob, wrld->inState[i], wrld->outState[i]);  //              StrandStatus_t sts = strand->update(glob, wrld->inState[i], wrld->outState[i]);
24                    StrandStatus_t sts = @STRAND@_Update(glob, wrld->inState[i], wrld->outState[i]);
25                  switch (sts) {                  switch (sts) {
26                    case DIDEROT_STABILIZE:                    case DIDEROT_STABILIZE:
27                      existsStabilizing = true;                      existsStabilizing = true;
# Line 42  Line 43 
43                    // stabilize the strand's state.  Note that the outState has been set by                    // stabilize the strand's state.  Note that the outState has been set by
44                    // the last call to update, so we make the inState be the target of the                    // the last call to update, so we make the inState be the target of the
45                    // stabilize method.                    // stabilize method.
46                      strand->stabilize(glob, wrld->outState[i], wrld->inState[i]);  //                    strand->stabilize(glob, wrld->outState[i], wrld->inState[i]);
47                        @STRAND@_Stabilize(glob, wrld->outState[i], wrld->inState[i]);
48                      memcpy (wrld->outState[i], wrld->inState[i], strand->stateSzb);                      memcpy (wrld->outState[i], wrld->inState[i], strand->stateSzb);
49                      wrld->status[i] = DIDEROT_STABLE;                      wrld->status[i] = DIDEROT_STABLE;
50                      nActive--;                      nActive--;

Legend:
Removed from v.1806  
changed lines
  Added in v.1807

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