IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 3, 2007, 12:25:33 PM (19 years ago)
Author:
jhoblitt
Message:

remove psMemBlock.refCounterMutex as it does not work around the need for the end user to implement their own thread synchronization. Removing this field saves 24 bytes on x86/Linux and 40 bytes (!!!) on amd64/Linux PER mem block.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jch-memory/psLib/src/sys/psMemory.h

    r10884 r10896  
    1212 *  @ingroup MemoryManagement
    1313 *
    14  *  @version $Revision: 1.61.2.1 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2007-01-03 03:36:38 $
     14 *  @version $Revision: 1.61.2.2 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2007-01-03 22:25:33 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7474    const char *file;                  ///< set from __FILE__ in e.g. p_psAlloc
    7575    const unsigned int lineno;         ///< set from __LINE__ in e.g. p_psAlloc
    76     pthread_mutex_t refCounterMutex;   ///< mutex to ensure exclusive access to reference counter
    7776    psReferenceCount refCounter;       ///< how many times pointer is referenced
    7877    bool persistent;                   ///< marks if this non-user persistent data like error stack, etc.
Note: See TracChangeset for help on using the changeset viewer.