IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19252


Ignore:
Timestamp:
Aug 27, 2008, 5:10:37 PM (18 years ago)
Author:
Paul Price
Message:

Only wait for the thread pool if we're threaded. Otherwise we can end
up in trouble by calling a psThreadPoolWait from within a thread!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageConvolve.c

    r19057 r19252  
    77/// @author Eugene Magnier, IfA
    88///
    9 /// @version $Revision: 1.74 $ $Name: not supported by cvs2svn $
    10 /// @date $Date: 2008-08-14 03:22:13 $
     9/// @version $Revision: 1.75 $ $Name: not supported by cvs2svn $
     10/// @date $Date: 2008-08-28 03:10:37 $
    1111///
    1212/// Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    950950    }
    951951
    952     if (!psThreadPoolWait(true)) {
     952    if (threaded && !psThreadPoolWait(true)) {
    953953        psError(PS_ERR_UNKNOWN, false, "Error waiting for threads.");
    954954        psFree(conv);
     
    989989    }
    990990
    991     if (!psThreadPoolWait(true)) {
     991    if (threaded && !psThreadPoolWait(true)) {
    992992        psError(PS_ERR_UNKNOWN, false, "Error waiting for threads.");
    993993        psFree(conv);
Note: See TracChangeset for help on using the changeset viewer.