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/pmSubtraction.h

    r18180 r19059  
    66 * @author GLG, MHPCC
    77 *
    8  * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2008-06-19 00:54:09 $
     8 * @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2008-08-14 03:25:55 $
    1010 * Copyright 2004-207 Institute for Astronomy, University of Hawaii
    1111 */
     
    9494    );
    9595
     96/// Execute a thread job to convolve a patch of the image
     97bool pmSubtractionConvolveThread(const psThreadJob *job ///< Job to execute
     98    );
     99
    96100/// Convolve image in preparation for subtraction
    97101bool pmSubtractionConvolve(pmReadout *out1, ///< Output image 1
Note: See TracChangeset for help on using the changeset viewer.