IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 9, 2006, 4:44:46 PM (20 years ago)
Author:
drobbin
Message:

Added psMemThreadSafety in psMemory and updated corresponding mutex's to comply with specs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.h

    r5216 r6419  
    1212 *  @ingroup MemoryManagement
    1313 *
    14  *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-10-01 02:22:13 $
     14 *  @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-02-10 02:44:46 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    169169 */
    170170psFreeFunc psMemGetDeallocator(
    171     const psPtr ptr                          ///< the memory block
     171    const psPtr ptr                    ///< the memory block
    172172);
    173173
     
    181181);
    182182
     183/** Activate or Deactivate thread safety and mutex locking in the memory management.
     184 *
     185 *  psMemThreadSafety shall turn on thread safety in the memory management functions if
     186 *  safe is true, and deactivate all mutex locking in the memory management functions if
     187 *  safe is false.  The function shall return the previous value of the thread safety.
     188 *  Note that the default behaviour of the library shall be for the locking to be performed.
     189 *
     190 *  @return bool:       The previous value of the thread safety.
     191 */
     192bool psMemThreadSafety(
     193    bool safe                          ///< boolean for turning on/off thread safety
     194);
    183195
    184196/** Set the memory as persistent so that it is ignored when detecting memory leaks.
Note: See TracChangeset for help on using the changeset viewer.