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

SCM Repository

[diderot] Diff of /branches/vis12/src/compiler/c-target/fragments/init.in
ViewVC logotype

Diff of /branches/vis12/src/compiler/c-target/fragments/init.in

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

revision 1828, Thu Apr 12 22:46:32 2012 UTC revision 1829, Fri Apr 13 01:50:00 2012 UTC
# Line 17  Line 17 
17          return 0;          return 0;
18      }      }
19    
20    #ifdef DIDEROT_TARGET_PARALLEL
21        wrld->sched         = NEW(Diderot_Sched_t);
22    
23        if ((wrld->sched == 0)
24        ||  (pthread_mutex_init (&(wrld->sched->lock), 0) != 0)
25        ||  (pthread_cond_init (&(wrld->sched->barrier), 0) != 0)
26        ||  (pthread_cond_init (&(wrld->sched->runWait), 0) != 0)) {
27            if (wrld->sched != 0) FREE(wrld->sched);
28            FREE(wrld);
29            return 0;
30        }
31    /* TODO: initialize sched->numWorkers */
32    #endif
33    
34    // initialize the input defaults    // initialize the input defaults
35      InitDefaults (wrld);      InitDefaults (wrld);
36    

Legend:
Removed from v.1828  
changed lines
  Added in v.1829

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