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

Diff of /branches/lamont/src/compiler/c-target/fragments/par-kdtree.in

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

revision 2562, Mon Mar 10 04:10:03 2014 UTC revision 2563, Wed Mar 12 16:38:30 2014 UTC
# Line 301  Line 301 
301          if (!len) return 0;          if (!len) return 0;
302          int mid;          int mid;
303          if ((n = find_median(wrld,sched,start,start + len,axis,&mid))) {          if ((n = find_median(wrld,sched,start,start + len,axis,&mid))) {
304                    pthread_mutex_lock (&sched->lock);
305                  newNode = Diderot_KDTree_GrabNode(wrld->spatialTree);                  newNode = Diderot_KDTree_GrabNode(wrld->spatialTree);
306            pthread_mutex_unlock (&sched->lock);
307                  newNode->strandId = n->strandId;                  newNode->strandId = n->strandId;
308                  axis = (axis + 1) % wrld->spatialTree->dim;                  axis = (axis + 1) % wrld->spatialTree->dim;
309    

Legend:
Removed from v.2562  
changed lines
  Added in v.2563

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