IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 12, 2004, 2:10:50 PM (22 years ago)
Author:
desonia
Message:

adjusted the reference count increment so that psFPA assumes ownership
of psChips, psChips assumes ownership of psCells, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psAstrometry.c

    r2056 r2067  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2004-10-12 19:51:53 $
     7 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2004-10-13 00:10:50 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    387387    }
    388388
    389     if (psMemGetRefCounter(fpa) != 2) {
    390         psLogMsg(__func__,PS_LOG_ERROR,
    391                  "psChipAlloc did not increment reference counter for parent FPA.");
     389    if (psMemGetRefCounter(fpa) != 1) {
     390        psLogMsg(__func__,PS_LOG_ERROR,
     391                 "psChipAlloc incremented reference counter for parent FPA.");
    392392        return 5;
    393393    }
     
    439439    }
    440440
    441     if (psMemGetRefCounter(fpa) != 3) {
    442         psLogMsg(__func__,PS_LOG_ERROR,
    443                  "psChipAlloc did not increment reference counter for parent FPA.");
     441    if (psMemGetRefCounter(fpa) != 1) {
     442        psLogMsg(__func__,PS_LOG_ERROR,
     443                 "psChipAlloc incremented reference counter for parent FPA.");
    444444        return 15;
    445445    }
     
    537537    }
    538538
    539     if (psMemGetRefCounter(chip) != 2) {
    540         psLogMsg(__func__,PS_LOG_ERROR,
    541                  "psCellAlloc did not increment reference counter for parent.");
     539    if (psMemGetRefCounter(chip) != 1) {
     540        psLogMsg(__func__,PS_LOG_ERROR,
     541                 "psCellAlloc incremented reference counter for parent.");
    542542        return 5;
    543543    }
     
    603603    }
    604604
    605     if (psMemGetRefCounter(chip) != 3) {
    606         psLogMsg(__func__,PS_LOG_ERROR,
    607                  "psCellAlloc did not increment reference counter for parent FPA.");
     605    if (psMemGetRefCounter(chip) != 1) {
     606        psLogMsg(__func__,PS_LOG_ERROR,
     607                 "psCellAlloc incremented reference counter for parent FPA.");
    608608        return 15;
    609609    }
     
    677677    }
    678678
    679     if (psMemGetRefCounter(image) != 2) {
    680         psLogMsg(__func__,PS_LOG_ERROR,
    681                  "psReadoutAlloc did not increment reference counter for image.");
     679    if (psMemGetRefCounter(image) != 1) {
     680        psLogMsg(__func__,PS_LOG_ERROR,
     681                 "psReadoutAlloc incremented reference counter for image.");
    682682        return 5;
    683683    }
Note: See TracChangeset for help on using the changeset viewer.