IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 13, 2008, 5:25:55 PM (18 years ago)
Author:
Paul Price
Message:

Adding threading for pmSubtractionConvolve. This was more difficult than for the others because the threads are working on a common image. Turns out that making child images using psImageSubset is not thread-safe: the image (which all threads are using) is modified. Wrapped those calls up in mutexes, and now threading seems to work fine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionThreads.h

    r18962 r19059  
    66
    77/// Set up threading for image matching
    8 void pmSubtractionThreadSetup(void);
     8///
     9/// Sets up thread tasks, and initialises mutexes in readouts
     10void pmSubtractionThreadsInit(pmReadout *out1, pmReadout *out2, // Output readouts
     11                              pmReadout *in1, pmReadout *in2 // Input readouts
     12    );
     13
     14
     15/// Take down threading for image matching
     16///
     17/// Destroys thread tasks, and initialises mutexes in readouts
     18void pmSubtractionThreadsFinalize(pmReadout *out1, pmReadout *out2, pmReadout *in1, pmReadout *in2);
    919
    1020#endif
Note: See TracChangeset for help on using the changeset viewer.