IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18754


Ignore:
Timestamp:
Jul 27, 2008, 12:42:32 PM (18 years ago)
Author:
eugene
Message:

define psThreadPoolFinalize

Location:
branches/eam_branch_20080719/psLib/src/sys
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080719/psLib/src/sys/psConfigure.c

    r15607 r18754  
    1313 *  @author Robert DeSonia, MHPCC
    1414 *
    15  *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2007-11-13 21:50:13 $
     15 *  @version $Revision: 1.26.16.1 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2008-07-27 22:42:32 $
    1717 *
    1818 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3131#include "psString.h"
    3232#include "psTime.h"
     33#include "psThread.h"
    3334#include "psEarthOrientation.h"
    3435#include "psError.h"
     
    124125    psTimerStop();
    125126
     127    psThreadPoolFinalize();
     128
    126129    // Free the time tables
    127130    if (!p_psTimeFinalize()) {
  • branches/eam_branch_20080719/psLib/src/sys/psThread.c

    r18751 r18754  
    154154    return false;
    155155}
     156
     157// create a pool of Nthreads, each running the user's job-launcher function
     158bool psThreadPoolFinalize () {
     159
     160    psFree (pending);
     161    pending = NULL;
     162
     163    psFree (done);
     164    done = NULL;
     165
     166    psFree (pool);
     167    pool = NULL;
     168
     169    return true;
     170}
     171
  • branches/eam_branch_20080719/psLib/src/sys/psThread.h

    r18751 r18754  
    44 *
    55 *  @author EAM, IFA
    6  *  @version $Revision: 1.1.2.2 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2008-07-27 17:59:42 $
     6 *  @version $Revision: 1.1.2.3 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2008-07-27 22:42:32 $
    88 *
    99 *  Copyright 2004-2005 Insitute for Astronomy, University of Hawaii
     
    4141bool psThreadPoolInit (int nThreads, psThreadLaunchJobsFunction function);
    4242bool psThreadPoolWait ();
     43bool psThreadPoolFinalize ();
    4344
    4445/// @}
Note: See TracChangeset for help on using the changeset viewer.