IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2008, 2:41:54 PM (18 years ago)
Author:
Paul Price
Message:

psphotInit should not turn on threading for psImageConvolveMask because parts of some programs (e.g., ppStack, ppSub) explicitly do not want threading of that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotSignificanceImage.c

    r20463 r20829  
    1212    // smooth the image and weight map
    1313    psTimerStart ("psphot.smooth");
    14     psImageConvolveSetThreads(true);
     14    bool oldThreads = psImageConvolveSetThreads(true); // Old value of threading in psImageConvolve
    1515
    1616    // XXX we can a) choose fft to convolve if needed and b) multithread fftw
     
    128128
    129129    psFree(smooth_wt);
     130
     131    psImageConvolveSetThreads(oldThreads);
     132
    130133    return smooth_im;
    131134}
    132135
    133 # if (0) 
    134 { 
     136# if (0)
     137{
    135138    // threadingdemo
    136139    // smooth the image, applying the mask as we go
Note: See TracChangeset for help on using the changeset viewer.