Changeset 830 for trunk/psLib/src/sysUtils/psMemory.h
- Timestamp:
- Jun 2, 2004, 10:03:22 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psMemory.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psMemory.h
r803 r830 12 12 * @author Robert Lupton, Princeton University 13 13 * 14 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-0 5-28 03:17:39$14 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-06-02 20:03:22 $ 16 16 * 17 17 * @ingroup SystemGroup System Utilities … … 21 21 22 22 #include <stdio.h> // needed for FILE 23 23 #include <pthread.h> // we need a mutex to make this stuff thread safe. 24 24 25 25 /** @addtogroup MemoryManagement Memory Management Utilities … … 64 64 const char* file; ///< set from __FILE__ in e.g. p_psAlloc 65 65 const int lineno; ///< set from __LINE__ in e.g. p_psAlloc 66 // TODO: refCounter should be mutexed?66 pthread_mutex_t refCounterMutex; ///< mutex to ensure exclusive access to reference counter 67 67 psReferenceCount refCounter; ///< how many times pointer is referenced 68 68 const void* endblock; ///< initialised to p_psMEMMAGIC
Note:
See TracChangeset
for help on using the changeset viewer.
