Changeset 18967 for trunk/ppMerge/src/ppMerge.h
- Timestamp:
- Aug 8, 2008, 8:17:12 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMerge.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMerge.h
r18839 r18967 15 15 #define TIMERNAME "ppMerge" // Name for timer 16 16 #define PPMERGE_RECIPE "PPMERGE" // Recipe name 17 #define THREADED 1 17 #define THREADED 1 // Compile with threads? 18 18 19 19 // Type of frame to merge … … 35 35 } ppMergeFiles; 36 36 37 // Group of files to read 38 // 39 // Each file contributes a readout, into which is read a chunk from that file 37 40 typedef struct { 38 psArray *readouts; 39 bool read; 40 bool busy; 41 int firstScan; 42 int lastScan; 41 psArray *readouts; // Input readouts 42 bool read; // Has the scan been read? 43 bool busy; // Is the scan being processed? 44 int firstScan; // First row of the chunk to be read for this group 45 int lastScan; // Last row of the chunk to be read for this group 43 46 } ppMergeFileGroup; 44 47 … … 101 104 102 105 103 ppMergeFileGroup *ppMergeFileGroupAlloc(); 104 ppMergeFileGroup *ppMergeReadChunk (bool *status, psArray *fileGroups, pmConfig *config, int numChunk); 105 void *ppMergeThreadLauncher (void *data); 106 // Allocator for group of files 107 ppMergeFileGroup *ppMergeFileGroupAlloc(void); 106 108 107 bool ppMergeSetThreads (); 109 // Read chunk into the first available file group 110 ppMergeFileGroup *ppMergeReadChunk(bool *status, // Status of read 111 psArray *fileGroups, // All groups 112 pmConfig *config, // Configuration 113 int numChunk // Chunk number (only for interest) 114 ); 115 116 // Set up thread handling 117 bool ppMergeSetThreads(void); 108 118 109 119 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
