# HG changeset patch # User Chris Cannam # Date 1146672556 0 # Node ID 4988de098b258e2aec4533769af5581445c8655a # Parent 1dcf41ed3863337b8ab2a3bd8f1d25614af359c4 ... diff -r 1dcf41ed3863 -r 4988de098b25 base/MatrixFileCache.h --- 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 #include +#include +#include // 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 m_refcount; + static QMutex m_refcountMutex; }; #endif