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 1806, Sat Apr 7 00:02:25 2012 UTC revision 1831, Fri Apr 13 13:33:40 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        ||  Diderot_GetNumCPUs(&(wrld->sched->cpuInfo))
25        ||  (pthread_mutex_init (&(wrld->sched->lock), 0) != 0)
26        ||  (pthread_cond_init (&(wrld->sched->barrier), 0) != 0)
27        ||  (pthread_cond_init (&(wrld->sched->runWait), 0) != 0)) {
28            FREE(wrld->globals);
29            FREE(wrld->sched);
30            FREE(wrld);
31            return 0;
32        }
33        wrld->sched->numWorkers = wrld->sched->cpuInfo.numHWCores;
34    #endif
35    
36    // initialize the input defaults    // initialize the input defaults
37      InitDefaults (wrld);      InitDefaults (wrld);
38    

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

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