IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 13, 2008, 5:18:41 PM (18 years ago)
Author:
Paul Price
Message:

Adding psMutex type (just pthread_mutex_t) to avoid problems associated with plugging mutex under void* in various types. Updated the types that have a dangling 'lock' to use this type.

Location:
trunk/psLib/src/mathtypes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.h

    r15760 r19056  
    99 * @author Joshua Hoblitt, University of Hawaii
    1010 *
    11  * @version $Revision: 1.96 $ $Name: not supported by cvs2svn $
    12  * @date $Date: 2007-12-07 19:33:19 $
     11 * @version $Revision: 1.97 $ $Name: not supported by cvs2svn $
     12 * @date $Date: 2008-08-14 03:18:41 $
    1313 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1414 */
     
    2424#include "psArray.h"
    2525#include "psConstants.h"
    26 
     26#include "psMutex.h"
    2727
    2828/** Basic image data structure.
     
    5656    psPtr p_rawDataBuffer;             ///< Raw data buffer for Allocating/Freeing Images; private
    5757    psArray* children;                 ///< Children of this region.
    58     void *lock;                        ///< Optional lock for thread safety
     58    psMutex lock;                       ///< Optional lock for thread safety
    5959}
    6060psImage;
  • trunk/psLib/src/mathtypes/psVector.h

    r18311 r19056  
    1010 * @author Joshua Hoblitt, University of Hawaii
    1111 *
    12  * @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
    13  * @date $Date: 2008-06-24 21:32:52 $
     12 * @version $Revision: 1.72 $ $Name: not supported by cvs2svn $
     13 * @date $Date: 2008-08-14 03:18:41 $
    1414 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1515 */
     
    2323#include <stdio.h>
    2424#include "psType.h"
     25#include "psMutex.h"
    2526
    2627/** An vector to support primitive types.
     
    4647        psF64* F64;                    ///< Double-precision float data.
    4748    } data;
    48     void *lock;                        ///< Optional lock for thread safety.
     49    psMutex lock;                       ///< Optional lock for thread safety.
    4950}
    5051psVector;
Note: See TracChangeset for help on using the changeset viewer.