IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29791


Ignore:
Timestamp:
Nov 17, 2010, 6:01:32 PM (15 years ago)
Author:
eugene
Message:

sped up the threaded version

Location:
branches/eam_branches/ipp-20101103/Ohana/src/addstar/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/Ohana/src/addstar/src/resort_catalog.c

    r29790 r29791  
    6161  off_t i, j, N, currentAve;
    6262
    63   struct timeval start, stop;
    64 
    6563  off_t *measureSeq = NULL;
    6664  off_t *averageSeq = NULL;
     
    6967  if (catalog[0].sorted == TRUE) return;
    7068
    71   gettimeofday (&start, NULL);
     69  // struct timeval start, stop;
     70  // gettimeofday (&start, NULL);
    7271
    7372  /* internal counters */
     
    128127  // MARKTIME("update Nmeasure : %f sec\n", dtime);
    129128
    130   MARKTIME("  match time %9.4f sec for %7lld measures, %6lld average\n", dtime, (long long) Nmeasure, (long long) Naverage);
     129  // MARKTIME("  match time %9.4f sec for %7lld measures, %6lld average\n", dtime, (long long) Nmeasure, (long long) Naverage);
    131130
    132131  FREE (measureSeq);
  • branches/eam_branches/ipp-20101103/Ohana/src/addstar/src/resort_threaded.c

    r29790 r29791  
    3535
    3636    while (threadData->state != TS_RUN) {
    37       usleep (10000);
     37      usleep (100);
    3838    }
    3939
     
    174174        launched = TRUE;
    175175      }
    176       if (!launched) usleep (10000);
     176      if (!launched) usleep (100);
    177177    }
    178178  }
     
    199199
    200200    if (Nwait < NTHREADS) {
    201       usleep (10000);
     201      usleep (100);
    202202    } else {
    203203      done = TRUE;
     
    231231
    232232    if (Nrun) {
    233       usleep (10000);
     233      usleep (100);
    234234    } else {
    235235      done = TRUE;
Note: See TracChangeset for help on using the changeset viewer.