comparison audioDB.h @ 178:7bbe5d48a7ef no-big-mmap

munmap() the separate mappings properly New slots ("member variables" I think they're called in C++) to store how much memory we've mapped at each address.
author mas01cr
date Thu, 15 Nov 2007 15:18:37 +0000
parents c32bf13c3978
children d434e771c776
comparison
equal deleted inserted replaced
177:c32bf13c3978 178:7bbe5d48a7ef
142 double* dataBuf; 142 double* dataBuf;
143 double* inBuf; 143 double* inBuf;
144 double* l2normTable; 144 double* l2normTable;
145 double* qNorm; 145 double* qNorm;
146 double* sNorm; 146 double* sNorm;
147 double* timesTable; 147 double* timesTable;
148
149 size_t fileTableLength;
150 size_t trackTableLength;
151 size_t dataBufLength;
152 size_t timesTableLength;
153 size_t l2normTableLength;
148 154
149 // Flags and parameters 155 // Flags and parameters
150 unsigned verbosity; // how much do we want to know? 156 unsigned verbosity; // how much do we want to know?
151 unsigned size; // given size (for creation) 157 unsigned size; // given size (for creation)
152 unsigned queryType; // point queries default 158 unsigned queryType; // point queries default
228 trackTable(0), \ 234 trackTable(0), \
229 dataBuf(0), \ 235 dataBuf(0), \
230 l2normTable(0), \ 236 l2normTable(0), \
231 qNorm(0), \ 237 qNorm(0), \
232 timesTable(0), \ 238 timesTable(0), \
239 fileTableLength(0), \
240 trackTableLength(0), \
241 dataBufLength(0), \
242 timesTableLength(0), \
243 l2normTableLength(0), \
233 verbosity(1), \ 244 verbosity(1), \
234 size(O2_DEFAULTDBSIZE), \ 245 size(O2_DEFAULTDBSIZE), \
235 queryType(O2_POINT_QUERY), \ 246 queryType(O2_POINT_QUERY), \
236 pointNN(O2_DEFAULT_POINTNN), \ 247 pointNN(O2_DEFAULT_POINTNN), \
237 trackNN(O2_DEFAULT_TRACKNN), \ 248 trackNN(O2_DEFAULT_TRACKNN), \