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/par-run.in
ViewVC logotype

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

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

revision 3936, Mon Jun 6 10:34:23 2016 UTC revision 3937, Mon Jun 6 13:16:10 2016 UTC
# Line 103  Line 103 
103    
104        // stabilize any threads that need stabilization.  Each worker is responsible for        // stabilize any threads that need stabilization.  Each worker is responsible for
105        // a contiguous region of the strands        // a contiguous region of the strands
 // FIXME: once we switch to dynamic lists of strand blocks, then we can use finer-grain tracking  
106          int numStabilized = 0;          int numStabilized = 0;
107          for (int i = start;  i < limit;  i++) {          for (int i = start;  i < limit;  i++) {
108              if (this->_status[i] == diderot::kStabilize) {              if (this->_status[i] == diderot::kStabilize) {
# Line 116  Line 115 
115  # else  # else
116                  @STRAND@_Stabilize(glob, this->_outState[i], this->_inState[i]);                  @STRAND@_Stabilize(glob, this->_outState[i], this->_inState[i]);
117  # endif  # endif
118                  memcpy (this->_outState[i], this->_inState[i], sizeof(@STRAND@_strand));                  std::memcpy (this->_outState[i], this->_inState[i], sizeof(@STRAND@_strand));
119  #else  #else
120  # ifdef DIDEROT_NO_GLOBALS  # ifdef DIDEROT_NO_GLOBALS
121                  @STRAND@_stabilize(&this->_state[i]);                  @STRAND@_stabilize(&this->_state[i]);

Legend:
Removed from v.3936  
changed lines
  Added in v.3937

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