Mercurial > hg > audiodb
diff 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 |
line wrap: on
line diff
--- a/audioDB.h Thu Nov 15 14:58:16 2007 +0000 +++ b/audioDB.h Thu Nov 15 15:18:37 2007 +0000 @@ -144,7 +144,13 @@ double* l2normTable; double* qNorm; double* sNorm; - double* timesTable; + double* timesTable; + + size_t fileTableLength; + size_t trackTableLength; + size_t dataBufLength; + size_t timesTableLength; + size_t l2normTableLength; // Flags and parameters unsigned verbosity; // how much do we want to know? @@ -230,6 +236,11 @@ l2normTable(0), \ qNorm(0), \ timesTable(0), \ + fileTableLength(0), \ + trackTableLength(0), \ + dataBufLength(0), \ + timesTableLength(0), \ + l2normTableLength(0), \ verbosity(1), \ size(O2_DEFAULTDBSIZE), \ queryType(O2_POINT_QUERY), \