Mercurial > hg > svcore
comparison data/fileio/MatrixFile.h @ 554:60482f13e627
* Some changes and debug toward reducing backward seeks (v. slow on os/x
apparently)
author | Chris Cannam |
---|---|
date | Sun, 08 Feb 2009 20:03:54 +0000 |
parents | 107d3f3705c9 |
children | 59e7fe1b1003 |
comparison
equal
deleted
inserted
replaced
553:98077b21a9e1 | 554:60482f13e627 |
---|---|
92 QString m_fileName; | 92 QString m_fileName; |
93 | 93 |
94 ResizeableBitset *m_setColumns; // only in writer | 94 ResizeableBitset *m_setColumns; // only in writer |
95 bool m_autoClose; | 95 bool m_autoClose; |
96 | 96 |
97 // In reader: if this is >= 0, we can read that column directly | |
98 // without seeking (and we know that the column exists) | |
99 mutable int m_readyToReadColumn; | |
100 | |
97 static std::map<QString, int> m_refcount; | 101 static std::map<QString, int> m_refcount; |
98 static QMutex m_createMutex; | 102 static QMutex m_createMutex; |
99 | 103 |
100 void initialise(); | 104 void initialise(); |
101 bool seekTo(size_t x, size_t y) const; | 105 bool seekTo(size_t x) const; |
102 }; | 106 }; |
103 | 107 |
104 #endif | 108 #endif |
105 | 109 |