Index: trunk/psLib/src/sysUtils/psMemory.h
===================================================================
--- trunk/psLib/src/sysUtils/psMemory.h	(revision 803)
+++ trunk/psLib/src/sysUtils/psMemory.h	(revision 830)
@@ -12,6 +12,6 @@
  *  @author Robert Lupton, Princeton University
  *
- *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-05-28 03:17:39 $
+ *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-02 20:03:22 $
  *
  *  @ingroup SystemGroup System Utilities
@@ -21,5 +21,5 @@
 
 #include <stdio.h>                      // needed for FILE
-
+#include <pthread.h>                   // we need a mutex to make this stuff thread safe.
 
 /** @addtogroup MemoryManagement Memory Management Utilities
@@ -64,5 +64,5 @@
     const char* file;                   ///< set from __FILE__ in e.g. p_psAlloc
     const int lineno;                   ///< set from __LINE__ in e.g. p_psAlloc
-    // TODO: refCounter should be mutexed?
+    pthread_mutex_t   refCounterMutex;  ///< mutex to ensure exclusive access to reference counter
     psReferenceCount refCounter;        ///< how many times pointer is referenced
     const void* endblock;               ///< initialised to p_psMEMMAGIC
