IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41928


Ignore:
Timestamp:
Nov 23, 2021, 9:07:21 AM (5 years ago)
Author:
eugene
Message:

add testing option which skips threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/ppStack/src/ppStackCombinePercent.c

    r41908 r41928  
    11#include "ppStack.h"
    22
     3# define USE_THREADS 1
    34// #define TESTING
    45
     
    2930        psArrayAdd(job->args, 1, options);
    3031        psArrayAdd(job->args, 1, config);
    31         if (!psThreadJobAddPending(job)) {
    32             return false;
    33         }
     32
     33        if (USE_THREADS) {
     34            if (!psThreadJobAddPending(job)) {
     35                return false;
     36            }
     37        } else {
     38            ppStackReadoutPercentThread(job);
     39        }
    3440    }
    35 
    36     if (!psThreadPoolWait(true, true)) {
     41   
     42    if (USE_THREADS && !psThreadPoolWait(true, true)) {
    3743        psError(psErrorCodeLast(), false, "Unable to do initial combination.");
    3844        return false;
Note: See TracChangeset for help on using the changeset viewer.