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

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

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

revision 1827, Thu Apr 12 14:37:41 2012 UTC revision 1828, Thu Apr 12 22:46:32 2012 UTC
# Line 25  Line 25 
25  // argument struct for worker threads  // argument struct for worker threads
26  typedef struct {  typedef struct {
27      uint32_t            id;             // worker's index into worker array      uint32_t            id;             // worker's index into worker array
28      uint32_t            maxNSteps       // maximum number of steps to take; 0 == infinity      uint32_t            maxNSteps;      // maximum number of steps to take; 0 == infinity
29      @PREFIX@World_t     *wrld;          // pointer to world structure      @PREFIX@World_t     *wrld;          // pointer to world structure
30  } WorkerArg_t CACHE_ALIGN;  } WorkerArg_t CACHE_ALIGN;
31    
# Line 36  Line 36 
36      uint32_t            numActive CACHE_ALIGN;  // # active strands      uint32_t            numActive CACHE_ALIGN;  // # active strands
37      uint32_t            numAvail CACHE_ALIGN;   // # unevaluated strands      uint32_t            numAvail CACHE_ALIGN;   // # unevaluated strands
38      uint32_t            numIdle CACHE_ALIGN;    // # idle workers      uint32_t            numIdle CACHE_ALIGN;    // # idle workers
39        uint32_t            numSteps CACHE_ALIGN;   // # of steps taken
40      pthread_mutex_t     lock;           // big lock to protect wrld from multiple accesses      pthread_mutex_t     lock;           // big lock to protect wrld from multiple accesses
41      pthread_cond_t      barrier;        // workers wait on this when they have no work      pthread_cond_t      barrier;        // workers wait on this when they have no work
42      pthread_cond_t      runWait;        // used to signal @PREFIX@Run that the workers have finished      pthread_cond_t      runWait;        // used to signal @PREFIX@Run that the workers have finished

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

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