changeset 92:4988de098b25

...
author Chris Cannam
date Wed, 03 May 2006 16:09:16 +0000
parents 1dcf41ed3863
children 27d726916ab3
files base/MatrixFileCache.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/base/MatrixFileCache.h	Wed May 03 16:03:27 2006 +0000
+++ b/base/MatrixFileCache.h	Wed May 03 16:09:16 2006 +0000
@@ -18,6 +18,8 @@
 
 #include <sys/types.h>
 #include <QString>
+#include <QMutex>
+#include <map>
 
 // This class is _not_ thread safe.  Each instance must only be used
 // within a single thread.  You may however have as many instances as
@@ -53,6 +55,7 @@
     size_t  m_height;
     size_t  m_headerSize;
     size_t  m_autoRegionWidth;
+    QString m_fileName;
 
     mutable off_t   m_off;
     mutable size_t  m_rx;
@@ -69,6 +72,9 @@
     bool setRegion(size_t x, size_t width, bool user) const;
 
     bool seekTo(size_t x, size_t y) const;
+
+    static std::map<QString, int> m_refcount;
+    static QMutex m_refcountMutex;
 };
 
 #endif