IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2008, 8:17:12 AM (18 years ago)
Author:
Paul Price
Message:

Fixing following changes to psThread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMerge.h

    r18839 r18967  
    1515#define TIMERNAME "ppMerge"             // Name for timer
    1616#define PPMERGE_RECIPE "PPMERGE"        // Recipe name
    17 #define THREADED 1
     17#define THREADED 1                      // Compile with threads?
    1818
    1919// Type of frame to merge
     
    3535} ppMergeFiles;
    3636
     37// Group of files to read
     38//
     39// Each file contributes a readout, into which is read a chunk from that file
    3740typedef 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
    4346} ppMergeFileGroup;
    4447
     
    101104
    102105
    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
     107ppMergeFileGroup *ppMergeFileGroupAlloc(void);
    106108
    107 bool ppMergeSetThreads ();
     109// Read chunk into the first available file group
     110ppMergeFileGroup *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
     117bool ppMergeSetThreads(void);
    108118
    109119#endif
Note: See TracChangeset for help on using the changeset viewer.